@daffodil/auth 0.88.1 → 0.90.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 (197) hide show
  1. package/driver/in-memory/index.d.ts +84 -1
  2. package/driver/index.d.ts +135 -1
  3. package/driver/magento/index.d.ts +132 -1
  4. package/driver/testing/index.d.ts +49 -1
  5. package/fesm2022/daffodil-auth-driver-in-memory.mjs +19 -19
  6. package/fesm2022/daffodil-auth-driver-in-memory.mjs.map +1 -1
  7. package/fesm2022/daffodil-auth-driver-magento.mjs +22 -22
  8. package/fesm2022/daffodil-auth-driver-magento.mjs.map +1 -1
  9. package/fesm2022/daffodil-auth-driver-testing.mjs +16 -16
  10. package/fesm2022/daffodil-auth-driver-testing.mjs.map +1 -1
  11. package/fesm2022/daffodil-auth-driver.mjs +3 -3
  12. package/fesm2022/daffodil-auth-driver.mjs.map +1 -1
  13. package/fesm2022/daffodil-auth-routing.mjs +20 -20
  14. package/fesm2022/daffodil-auth-routing.mjs.map +1 -1
  15. package/fesm2022/daffodil-auth-state-testing.mjs +16 -16
  16. package/fesm2022/daffodil-auth-state-testing.mjs.map +1 -1
  17. package/fesm2022/daffodil-auth-state.mjs +28 -28
  18. package/fesm2022/daffodil-auth-state.mjs.map +1 -1
  19. package/fesm2022/daffodil-auth-testing.mjs +9 -9
  20. package/fesm2022/daffodil-auth-testing.mjs.map +1 -1
  21. package/fesm2022/daffodil-auth.mjs +3 -3
  22. package/fesm2022/daffodil-auth.mjs.map +1 -1
  23. package/index.d.ts +76 -1
  24. package/package.json +1 -1
  25. package/routing/index.d.ts +104 -1
  26. package/state/index.d.ts +424 -1
  27. package/state/testing/index.d.ts +59 -1
  28. package/testing/index.d.ts +38 -1
  29. package/driver/constants/public_api.d.ts +0 -1
  30. package/driver/constants/unauthenticated-error-codes.d.ts +0 -10
  31. package/driver/errors/authentication-failed.d.ts +0 -6
  32. package/driver/errors/codes.enum.d.ts +0 -6
  33. package/driver/errors/invalid-api-response.d.ts +0 -6
  34. package/driver/errors/map.d.ts +0 -13
  35. package/driver/errors/public_api.d.ts +0 -6
  36. package/driver/errors/registration-failed.d.ts +0 -9
  37. package/driver/errors/unauthorized.d.ts +0 -6
  38. package/driver/in-memory/backend/auth.service.d.ts +0 -24
  39. package/driver/in-memory/collection-name.const.d.ts +0 -1
  40. package/driver/in-memory/drivers/auth/auth.service.d.ts +0 -16
  41. package/driver/in-memory/drivers/auth-driver.module.d.ts +0 -9
  42. package/driver/in-memory/drivers/login/login.service.d.ts +0 -18
  43. package/driver/in-memory/drivers/public_api.d.ts +0 -4
  44. package/driver/in-memory/drivers/register/register.service.d.ts +0 -20
  45. package/driver/in-memory/drivers/reset-password/service.d.ts +0 -21
  46. package/driver/in-memory/models/db-customer.type.d.ts +0 -8
  47. package/driver/in-memory/public_api.d.ts +0 -2
  48. package/driver/interfaces/auth-service.interface.d.ts +0 -8
  49. package/driver/interfaces/login-service.interface.d.ts +0 -15
  50. package/driver/interfaces/public_api.d.ts +0 -4
  51. package/driver/interfaces/register-service.interface.d.ts +0 -18
  52. package/driver/interfaces/reset-password-service.interface.d.ts +0 -17
  53. package/driver/magento/apollo-bearer-token-link-generator.d.ts +0 -16
  54. package/driver/magento/auth-driver.module.d.ts +0 -9
  55. package/driver/magento/auth.service.d.ts +0 -14
  56. package/driver/magento/errors/codes.d.ts +0 -5
  57. package/driver/magento/errors/map.d.ts +0 -2
  58. package/driver/magento/errors/transform.d.ts +0 -1
  59. package/driver/magento/login.service.d.ts +0 -18
  60. package/driver/magento/models/public_api.d.ts +0 -4
  61. package/driver/magento/models/response/auth.d.ts +0 -3
  62. package/driver/magento/models/response/register.type.d.ts +0 -7
  63. package/driver/magento/models/response/reset-password.type.d.ts +0 -3
  64. package/driver/magento/models/response/send-reset-email.type.d.ts +0 -3
  65. package/driver/magento/public_api.d.ts +0 -8
  66. package/driver/magento/queries/check-token.d.ts +0 -1
  67. package/driver/magento/queries/create-customer.d.ts +0 -1
  68. package/driver/magento/queries/generate-token.d.ts +0 -1
  69. package/driver/magento/queries/public_api.d.ts +0 -7
  70. package/driver/magento/queries/reset-password.d.ts +0 -1
  71. package/driver/magento/queries/responses/check-token-response.d.ts +0 -5
  72. package/driver/magento/queries/responses/generate-token-response.d.ts +0 -4
  73. package/driver/magento/queries/responses/public_api.d.ts +0 -3
  74. package/driver/magento/queries/responses/revoke-customer-token-response.d.ts +0 -5
  75. package/driver/magento/queries/revoke-customer-token.d.ts +0 -1
  76. package/driver/magento/queries/send-reset-email.d.ts +0 -1
  77. package/driver/magento/register.service.d.ts +0 -18
  78. package/driver/magento/reset-password.service.d.ts +0 -19
  79. package/driver/magento/transforms/auth-transformer.service.d.ts +0 -16
  80. package/driver/magento/validators/check-token.d.ts +0 -3
  81. package/driver/magento/validators/generate-token.d.ts +0 -3
  82. package/driver/magento/validators/public_api.d.ts +0 -5
  83. package/driver/magento/validators/reset-password.d.ts +0 -3
  84. package/driver/magento/validators/revoke-token.d.ts +0 -3
  85. package/driver/magento/validators/send-reset-email.d.ts +0 -3
  86. package/driver/public_api.d.ts +0 -4
  87. package/driver/services/auth-check.service.d.ts +0 -17
  88. package/driver/services/public_api.d.ts +0 -1
  89. package/driver/testing/drivers/auth/auth.service.d.ts +0 -11
  90. package/driver/testing/drivers/auth-driver.module.d.ts +0 -9
  91. package/driver/testing/drivers/login/login.service.d.ts +0 -16
  92. package/driver/testing/drivers/public_api.d.ts +0 -4
  93. package/driver/testing/drivers/register/register.service.d.ts +0 -16
  94. package/driver/testing/drivers/reset-password/service.d.ts +0 -17
  95. package/driver/testing/public_api.d.ts +0 -1
  96. package/errors/codes.enum.d.ts +0 -3
  97. package/errors/map.d.ts +0 -7
  98. package/errors/missing-token.d.ts +0 -10
  99. package/errors/public_api.d.ts +0 -3
  100. package/models/account-registration.d.ts +0 -15
  101. package/models/auth-token.d.ts +0 -3
  102. package/models/login-info.d.ts +0 -4
  103. package/models/public_api.d.ts +0 -4
  104. package/models/reset-password-info.type.d.ts +0 -14
  105. package/public_api.d.ts +0 -3
  106. package/routing/config/default.d.ts +0 -2
  107. package/routing/config/interface.d.ts +0 -29
  108. package/routing/config/public_api.d.ts +0 -3
  109. package/routing/config/token.d.ts +0 -2
  110. package/routing/effects/redirect.effects.d.ts +0 -18
  111. package/routing/guards/guest-only-guard-redirect.token.d.ts +0 -1
  112. package/routing/guards/guest-only.guard.d.ts +0 -20
  113. package/routing/guards/member-only-guard-redirect.token.d.ts +0 -1
  114. package/routing/guards/member-only.guard.d.ts +0 -20
  115. package/routing/guards/public_api.d.ts +0 -5
  116. package/routing/guards/reset-password.guard.d.ts +0 -13
  117. package/routing/helpers/public_api.d.ts +0 -1
  118. package/routing/helpers/redirect-unauthenticated-hook-factory.d.ts +0 -4
  119. package/routing/module.d.ts +0 -9
  120. package/routing/public_api.d.ts +0 -5
  121. package/routing/redirect.module.d.ts +0 -7
  122. package/state/actions/auth.actions.d.ts +0 -56
  123. package/state/actions/login.actions.d.ts +0 -64
  124. package/state/actions/public_api.d.ts +0 -4
  125. package/state/actions/register.actions.d.ts +0 -40
  126. package/state/actions/reset-password.actions.d.ts +0 -74
  127. package/state/auth-state.module.d.ts +0 -11
  128. package/state/config/default.d.ts +0 -2
  129. package/state/config/public_api.d.ts +0 -3
  130. package/state/config/token.d.ts +0 -2
  131. package/state/config/type.d.ts +0 -7
  132. package/state/effects/auth.effects.d.ts +0 -28
  133. package/state/effects/login.effects.d.ts +0 -17
  134. package/state/effects/register.effects.d.ts +0 -17
  135. package/state/effects/reset-password.effects.d.ts +0 -18
  136. package/state/facades/auth/facade.d.ts +0 -19
  137. package/state/facades/auth/facade.interface.d.ts +0 -11
  138. package/state/facades/auth/public_api.d.ts +0 -2
  139. package/state/facades/login/facade.d.ts +0 -18
  140. package/state/facades/login/facade.interface.d.ts +0 -7
  141. package/state/facades/login/public_api.d.ts +0 -2
  142. package/state/facades/public_api.d.ts +0 -4
  143. package/state/facades/register/facade.d.ts +0 -18
  144. package/state/facades/register/facade.interface.d.ts +0 -7
  145. package/state/facades/register/public_api.d.ts +0 -2
  146. package/state/facades/reset-password/facade.d.ts +0 -20
  147. package/state/facades/reset-password/facade.interface.d.ts +0 -9
  148. package/state/facades/reset-password/public_api.d.ts +0 -2
  149. package/state/injection-tokens/error-matcher.token.d.ts +0 -2
  150. package/state/injection-tokens/public_api.d.ts +0 -2
  151. package/state/injection-tokens/unauthenticated/hook.token.d.ts +0 -2
  152. package/state/injection-tokens/unauthenticated/hook.type.d.ts +0 -9
  153. package/state/injection-tokens/unauthenticated/hooks.token.d.ts +0 -2
  154. package/state/injection-tokens/unauthenticated/public_api.d.ts +0 -2
  155. package/state/public_api.d.ts +0 -7
  156. package/state/reducers/auth/auth-initial-state.d.ts +0 -2
  157. package/state/reducers/auth/auth-reducer-state.interface.d.ts +0 -4
  158. package/state/reducers/auth/auth.reducer.d.ts +0 -3
  159. package/state/reducers/auth/public_api.d.ts +0 -3
  160. package/state/reducers/auth-feature-state.interface.d.ts +0 -14
  161. package/state/reducers/auth-reducers.d.ts +0 -3
  162. package/state/reducers/auth-store-feature-key.d.ts +0 -1
  163. package/state/reducers/login/login-initial-state.d.ts +0 -2
  164. package/state/reducers/login/login-reducer-state.interface.d.ts +0 -2
  165. package/state/reducers/login/login.reducer.d.ts +0 -4
  166. package/state/reducers/login/public_api.d.ts +0 -3
  167. package/state/reducers/public_api.d.ts +0 -8
  168. package/state/reducers/register/public_api.d.ts +0 -3
  169. package/state/reducers/register/register-initial-state.d.ts +0 -2
  170. package/state/reducers/register/register-reducer-state.interface.d.ts +0 -2
  171. package/state/reducers/register/register.reducer.d.ts +0 -4
  172. package/state/reducers/reset-password/initial-state.d.ts +0 -2
  173. package/state/reducers/reset-password/public_api.d.ts +0 -3
  174. package/state/reducers/reset-password/reducer.d.ts +0 -4
  175. package/state/reducers/reset-password/state.interface.d.ts +0 -5
  176. package/state/reducers/token/extra.token.d.ts +0 -3
  177. package/state/reducers/token/public_api.d.ts +0 -1
  178. package/state/reducers/token/reducers.token.d.ts +0 -3
  179. package/state/selectors/auth/auth.selector.d.ts +0 -8
  180. package/state/selectors/auth-all.selector.d.ts +0 -10
  181. package/state/selectors/auth-feature.selector.d.ts +0 -6
  182. package/state/selectors/login/login.selector.d.ts +0 -7
  183. package/state/selectors/public_api.d.ts +0 -5
  184. package/state/selectors/register/register.selector.d.ts +0 -7
  185. package/state/selectors/reset-password/selector.d.ts +0 -9
  186. package/state/testing/auth-testing.module.d.ts +0 -6
  187. package/state/testing/mock-auth-facade.d.ts +0 -16
  188. package/state/testing/mock-login-facade.d.ts +0 -15
  189. package/state/testing/mock-register-facade.d.ts +0 -15
  190. package/state/testing/mock-reset-password-facade.d.ts +0 -16
  191. package/state/testing/public_api.d.ts +0 -5
  192. package/storage/auth-storage.service.d.ts +0 -12
  193. package/testing/factories/account-registration.factory.d.ts +0 -15
  194. package/testing/factories/auth-token.factory.d.ts +0 -11
  195. package/testing/factories/public_api.d.ts +0 -3
  196. package/testing/factories/reset-password-info.factory.d.ts +0 -13
  197. package/testing/public_api.d.ts +0 -1
@@ -1,18 +0,0 @@
1
- import { Actions } from '@ngrx/effects';
2
- import { Observable } from 'rxjs';
3
- import { DaffAuthResetPasswordInfo, DaffAuthStorageService } from '@daffodil/auth';
4
- import { DaffResetPasswordServiceInterface } from '@daffodil/auth/driver';
5
- import { ErrorTransformer } from '@daffodil/core/state';
6
- import { DaffResetPasswordSuccess, DaffResetPasswordFailure, DaffAuthServerSide, DaffAuthStorageFailure } from '../actions/public_api';
7
- import * as i0 from "@angular/core";
8
- export declare class DaffAuthResetPasswordEffects<T extends DaffAuthResetPasswordInfo = DaffAuthResetPasswordInfo> {
9
- private actions$;
10
- private driver;
11
- private errorMatcher;
12
- private storage;
13
- constructor(actions$: Actions, driver: DaffResetPasswordServiceInterface<T>, errorMatcher: ErrorTransformer, storage: DaffAuthStorageService);
14
- sendResetEmail$: Observable<any>;
15
- resetPassword$: Observable<DaffAuthStorageFailure | DaffAuthServerSide | DaffResetPasswordSuccess | DaffResetPasswordFailure> & import("@ngrx/effects").CreateEffectMetadata;
16
- static ɵfac: i0.ɵɵFactoryDeclaration<DaffAuthResetPasswordEffects<any>, never>;
17
- static ɵprov: i0.ɵɵInjectableDeclaration<DaffAuthResetPasswordEffects<any>>;
18
- }
@@ -1,19 +0,0 @@
1
- import { Action, Store } from '@ngrx/store';
2
- import { Observable } from 'rxjs';
3
- import { DaffStateError } from '@daffodil/core/state';
4
- import { DaffAuthFacadeInterface } from './facade.interface';
5
- import { DaffAuthStateRootSlice } from '../../reducers/public_api';
6
- import * as i0 from "@angular/core";
7
- /**
8
- * @inheritdoc
9
- */
10
- export declare class DaffAuthFacade implements DaffAuthFacadeInterface {
11
- private store;
12
- loading$: Observable<boolean>;
13
- errors$: Observable<DaffStateError[]>;
14
- loggedIn$: Observable<boolean>;
15
- constructor(store: Store<DaffAuthStateRootSlice>);
16
- dispatch(action: Action): void;
17
- static ɵfac: i0.ɵɵFactoryDeclaration<DaffAuthFacade, never>;
18
- static ɵprov: i0.ɵɵInjectableDeclaration<DaffAuthFacade>;
19
- }
@@ -1,11 +0,0 @@
1
- import { Action } from '@ngrx/store';
2
- import { Observable } from 'rxjs';
3
- import { DaffStoreFacade, DaffStateError } from '@daffodil/core/state';
4
- export interface DaffAuthFacadeInterface extends DaffStoreFacade<Action> {
5
- loading$: Observable<boolean>;
6
- errors$: Observable<DaffStateError[]>;
7
- /**
8
- * Whether the current user is logged in.
9
- */
10
- loggedIn$: Observable<boolean>;
11
- }
@@ -1,2 +0,0 @@
1
- export { DaffAuthFacade } from './facade';
2
- export { DaffAuthFacadeInterface } from './facade.interface';
@@ -1,18 +0,0 @@
1
- import { Action, Store } from '@ngrx/store';
2
- import { Observable } from 'rxjs';
3
- import { DaffStateError } from '@daffodil/core/state';
4
- import { DaffAuthLoginFacadeInterface } from './facade.interface';
5
- import { DaffAuthStateRootSlice } from '../../reducers/public_api';
6
- import * as i0 from "@angular/core";
7
- /**
8
- * @inheritdoc
9
- */
10
- export declare class DaffAuthLoginFacade implements DaffAuthLoginFacadeInterface {
11
- private store;
12
- loading$: Observable<boolean>;
13
- errors$: Observable<DaffStateError[]>;
14
- constructor(store: Store<DaffAuthStateRootSlice>);
15
- dispatch(action: Action): void;
16
- static ɵfac: i0.ɵɵFactoryDeclaration<DaffAuthLoginFacade, never>;
17
- static ɵprov: i0.ɵɵInjectableDeclaration<DaffAuthLoginFacade>;
18
- }
@@ -1,7 +0,0 @@
1
- import { Action } from '@ngrx/store';
2
- import { Observable } from 'rxjs';
3
- import { DaffStoreFacade, DaffStateError } from '@daffodil/core/state';
4
- export interface DaffAuthLoginFacadeInterface extends DaffStoreFacade<Action> {
5
- loading$: Observable<boolean>;
6
- errors$: Observable<DaffStateError[]>;
7
- }
@@ -1,2 +0,0 @@
1
- export { DaffAuthLoginFacade } from './facade';
2
- export { DaffAuthLoginFacadeInterface } from './facade.interface';
@@ -1,4 +0,0 @@
1
- export * from './auth/public_api';
2
- export * from './login/public_api';
3
- export * from './register/public_api';
4
- export * from './reset-password/public_api';
@@ -1,18 +0,0 @@
1
- import { Action, Store } from '@ngrx/store';
2
- import { Observable } from 'rxjs';
3
- import { DaffStateError } from '@daffodil/core/state';
4
- import { DaffAuthRegisterFacadeInterface } from './facade.interface';
5
- import { DaffAuthStateRootSlice } from '../../reducers/public_api';
6
- import * as i0 from "@angular/core";
7
- /**
8
- * @inheritdoc
9
- */
10
- export declare class DaffAuthRegisterFacade implements DaffAuthRegisterFacadeInterface {
11
- private store;
12
- loading$: Observable<boolean>;
13
- errors$: Observable<DaffStateError[]>;
14
- constructor(store: Store<DaffAuthStateRootSlice>);
15
- dispatch(action: Action): void;
16
- static ɵfac: i0.ɵɵFactoryDeclaration<DaffAuthRegisterFacade, never>;
17
- static ɵprov: i0.ɵɵInjectableDeclaration<DaffAuthRegisterFacade>;
18
- }
@@ -1,7 +0,0 @@
1
- import { Action } from '@ngrx/store';
2
- import { Observable } from 'rxjs';
3
- import { DaffStoreFacade, DaffStateError } from '@daffodil/core/state';
4
- export interface DaffAuthRegisterFacadeInterface extends DaffStoreFacade<Action> {
5
- loading$: Observable<boolean>;
6
- errors$: Observable<DaffStateError[]>;
7
- }
@@ -1,2 +0,0 @@
1
- export { DaffAuthRegisterFacade } from './facade';
2
- export { DaffAuthRegisterFacadeInterface } from './facade.interface';
@@ -1,20 +0,0 @@
1
- import { Action, Store } from '@ngrx/store';
2
- import { Observable } from 'rxjs';
3
- import { DaffAuthResetPasswordInfo } from '@daffodil/auth';
4
- import { DaffStateError } from '@daffodil/core/state';
5
- import { DaffAuthResetPasswordFacadeInterface } from './facade.interface';
6
- import { DaffAuthStateRootSlice } from '../../reducers/public_api';
7
- import * as i0 from "@angular/core";
8
- /**
9
- * @inheritdoc
10
- */
11
- export declare class DaffAuthResetPasswordFacade implements DaffAuthResetPasswordFacadeInterface {
12
- private store;
13
- token$: Observable<DaffAuthResetPasswordInfo['token']>;
14
- loading$: Observable<boolean>;
15
- errors$: Observable<DaffStateError[]>;
16
- constructor(store: Store<DaffAuthStateRootSlice>);
17
- dispatch(action: Action): void;
18
- static ɵfac: i0.ɵɵFactoryDeclaration<DaffAuthResetPasswordFacade, never>;
19
- static ɵprov: i0.ɵɵInjectableDeclaration<DaffAuthResetPasswordFacade>;
20
- }
@@ -1,9 +0,0 @@
1
- import { Action } from '@ngrx/store';
2
- import { Observable } from 'rxjs';
3
- import { DaffAuthResetPasswordInfo } from '@daffodil/auth';
4
- import { DaffStoreFacade, DaffStateError } from '@daffodil/core/state';
5
- export interface DaffAuthResetPasswordFacadeInterface extends DaffStoreFacade<Action> {
6
- token$: Observable<DaffAuthResetPasswordInfo['token']>;
7
- loading$: Observable<boolean>;
8
- errors$: Observable<DaffStateError[]>;
9
- }
@@ -1,2 +0,0 @@
1
- export { DaffAuthResetPasswordFacade } from './facade';
2
- export { DaffAuthResetPasswordFacadeInterface } from './facade.interface';
@@ -1,2 +0,0 @@
1
- import { daffTransformErrorToStateError } from '@daffodil/core/state';
2
- export declare const DAFF_AUTH_ERROR_MATCHER: import("@angular/core").InjectionToken<typeof daffTransformErrorToStateError>, provideDaffAuthErrorMatcher: <R extends typeof daffTransformErrorToStateError = typeof daffTransformErrorToStateError>(value: R) => import("@angular/core").ValueProvider;
@@ -1,2 +0,0 @@
1
- export * from './unauthenticated/public_api';
2
- export * from './error-matcher.token';
@@ -1,2 +0,0 @@
1
- import { DaffAuthUnauthenticatedHook } from './hook.type';
2
- export declare const DAFF_AUTH_UNAUTHENTICATED_HOOK: import("@angular/core").InjectionToken<DaffAuthUnauthenticatedHook>, provideDaffAuthUnauthenticatedHook: <R extends DaffAuthUnauthenticatedHook = DaffAuthUnauthenticatedHook>(value: R) => import("@angular/core").ValueProvider;
@@ -1,9 +0,0 @@
1
- import { Action } from '@ngrx/store';
2
- import { Observable } from 'rxjs';
3
- /**
4
- * A function that is called when the user is unauthenticated.
5
- * When a logged-in user is unauthenticated, various packages may perform cleanup tasks.
6
- * These hooks will be called in no particular order before the client driver state is reset.
7
- * Daffodil will wait for at least one emission from each hook before proceeding.
8
- */
9
- export type DaffAuthUnauthenticatedHook = (trigger: Action['type']) => Observable<unknown>;
@@ -1,2 +0,0 @@
1
- import { DaffAuthUnauthenticatedHook } from './hook.type';
2
- export declare const DAFF_AUTH_UNAUTHENTICATED_HOOKS: import("@angular/core").InjectionToken<DaffAuthUnauthenticatedHook[]>, daffAuthProvideUnauthenticatedHooks: <R extends DaffAuthUnauthenticatedHook = DaffAuthUnauthenticatedHook>(...values: R[]) => Array<import("@angular/core").ValueProvider>;
@@ -1,2 +0,0 @@
1
- export { daffAuthProvideUnauthenticatedHooks, DAFF_AUTH_UNAUTHENTICATED_HOOKS, } from './hooks.token';
2
- export { DaffAuthUnauthenticatedHook } from './hook.type';
@@ -1,7 +0,0 @@
1
- export * from './actions/public_api';
2
- export * from './reducers/public_api';
3
- export * from './selectors/public_api';
4
- export * from './facades/public_api';
5
- export * from './config/public_api';
6
- export * from './injection-tokens/public_api';
7
- export { DaffAuthStateModule } from './auth-state.module';
@@ -1,2 +0,0 @@
1
- import { DaffAuthReducerState } from './auth-reducer-state.interface';
2
- export declare const daffAuthInitialState: DaffAuthReducerState;
@@ -1,4 +0,0 @@
1
- import { DaffOperationState } from '@daffodil/core/state';
2
- export interface DaffAuthReducerState extends DaffOperationState {
3
- loggedIn: boolean;
4
- }
@@ -1,3 +0,0 @@
1
- import { DaffAuthReducerState } from './auth-reducer-state.interface';
2
- import { DaffAuthActions, DaffAuthLoginActions, DaffAuthRegisterSuccess, DaffAuthResetPasswordActions } from '../../actions/public_api';
3
- export declare function daffAuthReducer(state: DaffAuthReducerState, action: DaffAuthActions | DaffAuthLoginActions | DaffAuthRegisterSuccess | DaffAuthResetPasswordActions): DaffAuthReducerState;
@@ -1,3 +0,0 @@
1
- export { DaffAuthReducerState } from './auth-reducer-state.interface';
2
- export { daffAuthReducer } from './auth.reducer';
3
- export { daffAuthInitialState } from './auth-initial-state';
@@ -1,14 +0,0 @@
1
- import { DaffAuthReducerState } from './auth/public_api';
2
- import { DAFF_AUTH_STORE_FEATURE_KEY } from './auth-store-feature-key';
3
- import { DaffAuthLoginReducerState } from './login/public_api';
4
- import { DaffAuthRegisterReducerState } from './register/public_api';
5
- import { DaffAuthResetPasswordReducerState } from './reset-password/public_api';
6
- export interface DaffAuthFeatureState {
7
- auth: DaffAuthReducerState;
8
- login: DaffAuthLoginReducerState;
9
- register: DaffAuthRegisterReducerState;
10
- resetPassword: DaffAuthResetPasswordReducerState;
11
- }
12
- export interface DaffAuthStateRootSlice {
13
- [DAFF_AUTH_STORE_FEATURE_KEY]: DaffAuthFeatureState;
14
- }
@@ -1,3 +0,0 @@
1
- import { ActionReducerMap } from '@ngrx/store';
2
- import { DaffAuthFeatureState } from './auth-feature-state.interface';
3
- export declare const daffAuthReducers: ActionReducerMap<DaffAuthFeatureState>;
@@ -1 +0,0 @@
1
- export declare const DAFF_AUTH_STORE_FEATURE_KEY = "daffAuth";
@@ -1,2 +0,0 @@
1
- import { DaffAuthLoginReducerState } from './login-reducer-state.interface';
2
- export declare const daffAuthLoginInitialState: DaffAuthLoginReducerState;
@@ -1,2 +0,0 @@
1
- import { DaffOperationState } from '@daffodil/core/state';
2
- export type DaffAuthLoginReducerState = DaffOperationState;
@@ -1,4 +0,0 @@
1
- import { DaffLoginInfo, DaffAuthToken } from '@daffodil/auth';
2
- import { DaffAuthLoginReducerState } from './login-reducer-state.interface';
3
- import { DaffAuthLoginActions } from '../../actions/public_api';
4
- export declare function daffAuthLoginReducer<T extends DaffLoginInfo, U extends DaffAuthToken>(state: import("@daffodil/core/state").DaffOperationState, action: DaffAuthLoginActions<T, U>): DaffAuthLoginReducerState;
@@ -1,3 +0,0 @@
1
- export { DaffAuthLoginReducerState } from './login-reducer-state.interface';
2
- export { daffAuthLoginReducer } from './login.reducer';
3
- export { daffAuthLoginInitialState } from './login-initial-state';
@@ -1,8 +0,0 @@
1
- export * from './auth/public_api';
2
- export * from './login/public_api';
3
- export * from './register/public_api';
4
- export * from './reset-password/public_api';
5
- export * from './token/public_api';
6
- export { DAFF_AUTH_STORE_FEATURE_KEY } from './auth-store-feature-key';
7
- export { daffAuthReducers } from './auth-reducers';
8
- export { DaffAuthFeatureState, DaffAuthStateRootSlice, } from './auth-feature-state.interface';
@@ -1,3 +0,0 @@
1
- export { DaffAuthRegisterReducerState } from './register-reducer-state.interface';
2
- export { daffAuthRegisterReducer } from './register.reducer';
3
- export { daffAuthRegisterInitialState } from './register-initial-state';
@@ -1,2 +0,0 @@
1
- import { DaffAuthRegisterReducerState } from './register-reducer-state.interface';
2
- export declare const daffAuthRegisterInitialState: DaffAuthRegisterReducerState;
@@ -1,2 +0,0 @@
1
- import { DaffOperationState } from '@daffodil/core/state';
2
- export type DaffAuthRegisterReducerState = DaffOperationState;
@@ -1,4 +0,0 @@
1
- import { DaffAccountRegistration } from '@daffodil/auth';
2
- import { DaffAuthRegisterReducerState } from './register-reducer-state.interface';
3
- import { DaffAuthRegisterActions } from '../../actions/public_api';
4
- export declare function daffAuthRegisterReducer<T extends DaffAccountRegistration>(state: import("@daffodil/core/state").DaffOperationState, action: DaffAuthRegisterActions<T>): DaffAuthRegisterReducerState;
@@ -1,2 +0,0 @@
1
- import { DaffAuthResetPasswordReducerState } from './state.interface';
2
- export declare const daffAuthResetPasswordInitialState: DaffAuthResetPasswordReducerState;
@@ -1,3 +0,0 @@
1
- export { DaffAuthResetPasswordReducerState } from './state.interface';
2
- export { daffAuthResetPasswordReducer } from './reducer';
3
- export { daffAuthResetPasswordInitialState } from './initial-state';
@@ -1,4 +0,0 @@
1
- import { DaffAuthResetPasswordInfo } from '@daffodil/auth';
2
- import { DaffAuthResetPasswordReducerState } from './state.interface';
3
- import { DaffAuthResetPasswordActions } from '../../actions/public_api';
4
- export declare function daffAuthResetPasswordReducer<T extends DaffAuthResetPasswordInfo = DaffAuthResetPasswordInfo>(state: DaffAuthResetPasswordReducerState, action: DaffAuthResetPasswordActions<T>): DaffAuthResetPasswordReducerState;
@@ -1,5 +0,0 @@
1
- import { DaffAuthResetPasswordInfo } from '@daffodil/auth';
2
- import { DaffOperationState } from '@daffodil/core/state';
3
- export interface DaffAuthResetPasswordReducerState extends DaffOperationState {
4
- token: DaffAuthResetPasswordInfo['token'];
5
- }
@@ -1,3 +0,0 @@
1
- import { ActionReducer } from '@ngrx/store';
2
- import { DaffAuthFeatureState } from '../auth-feature-state.interface';
3
- export declare const DAFF_AUTH_EXTRA_REDUCERS: import("@angular/core").InjectionToken<ActionReducer<DaffAuthFeatureState, import("@ngrx/store").Action<string>>[]>, daffAuthProvideExtraReducers: <R extends ActionReducer<DaffAuthFeatureState, import("@ngrx/store").Action<string>> = ActionReducer<DaffAuthFeatureState, import("@ngrx/store").Action<string>>>(...values: R[]) => Array<import("@angular/core").ValueProvider>;
@@ -1 +0,0 @@
1
- export { daffAuthProvideExtraReducers, DAFF_AUTH_EXTRA_REDUCERS, } from './extra.token';
@@ -1,3 +0,0 @@
1
- import { ActionReducer } from '@ngrx/store';
2
- import { DaffAuthFeatureState } from '../auth-feature-state.interface';
3
- export declare const DAFF_AUTH_REDUCERS: import("@angular/core").InjectionToken<ActionReducer<DaffAuthFeatureState, import("@ngrx/store").Action<string>>>, provideDaffAuthReducers: <R extends ActionReducer<DaffAuthFeatureState, import("@ngrx/store").Action<string>> = ActionReducer<DaffAuthFeatureState, import("@ngrx/store").Action<string>>>(value: R) => import("@angular/core").ValueProvider;
@@ -1,8 +0,0 @@
1
- import { MemoizedSelector } from '@ngrx/store';
2
- import { DaffOperationStateSelectors } from '@daffodil/core/state';
3
- import { DaffAuthReducerState, DaffAuthStateRootSlice } from '../../reducers/public_api';
4
- export interface AuthSelectors extends DaffOperationStateSelectors<DaffAuthStateRootSlice, DaffAuthReducerState> {
5
- selectAuthState: MemoizedSelector<DaffAuthStateRootSlice, DaffAuthReducerState>;
6
- selectAuthLoggedIn: MemoizedSelector<DaffAuthStateRootSlice, boolean>;
7
- }
8
- export declare const daffAuthSelectorFactory: () => AuthSelectors;
@@ -1,10 +0,0 @@
1
- import { MemoizedSelector } from '@ngrx/store';
2
- import { AuthSelectors } from './auth/auth.selector';
3
- import { DaffAuthLoginSelectors } from './login/login.selector';
4
- import { DaffAuthRegisterSelectors } from './register/register.selector';
5
- import { DaffAuthResetPasswordSelectors } from './reset-password/selector';
6
- import { DaffAuthFeatureState } from '../reducers/public_api';
7
- export interface DaffAuthSelectors extends DaffAuthRegisterSelectors, DaffAuthLoginSelectors, DaffAuthResetPasswordSelectors, AuthSelectors {
8
- selectAuthFeatureState: MemoizedSelector<Record<string, any>, DaffAuthFeatureState>;
9
- }
10
- export declare const getDaffAuthSelectors: () => DaffAuthSelectors;
@@ -1,6 +0,0 @@
1
- import { MemoizedSelector } from '@ngrx/store';
2
- import { DaffAuthFeatureState } from '../reducers/public_api';
3
- /**
4
- * Feature State Selector
5
- */
6
- export declare const getDaffAuthFeatureStateSelector: () => MemoizedSelector<Record<string, any>, DaffAuthFeatureState>;
@@ -1,7 +0,0 @@
1
- import { MemoizedSelector } from '@ngrx/store';
2
- import { DaffOperationStateSelectors } from '@daffodil/core/state';
3
- import { DaffAuthLoginReducerState, DaffAuthStateRootSlice } from '../../reducers/public_api';
4
- export interface DaffAuthLoginSelectors extends DaffOperationStateSelectors<DaffAuthStateRootSlice, DaffAuthLoginReducerState> {
5
- selectAuthLoginState: MemoizedSelector<DaffAuthStateRootSlice, DaffAuthLoginReducerState>;
6
- }
7
- export declare const daffAuthLoginSelectorFactory: () => DaffAuthLoginSelectors;
@@ -1,5 +0,0 @@
1
- export * from './auth-all.selector';
2
- export * from './auth/auth.selector';
3
- export * from './login/login.selector';
4
- export * from './register/register.selector';
5
- export * from './reset-password/selector';
@@ -1,7 +0,0 @@
1
- import { MemoizedSelector } from '@ngrx/store';
2
- import { DaffOperationStateSelectors } from '@daffodil/core/state';
3
- import { DaffAuthRegisterReducerState, DaffAuthStateRootSlice } from '../../reducers/public_api';
4
- export interface DaffAuthRegisterSelectors extends DaffOperationStateSelectors<DaffAuthStateRootSlice, DaffAuthRegisterReducerState> {
5
- selectAuthRegisterState: MemoizedSelector<DaffAuthStateRootSlice, DaffAuthRegisterReducerState>;
6
- }
7
- export declare const daffAuthRegisterSelectorFactory: () => DaffAuthRegisterSelectors;
@@ -1,9 +0,0 @@
1
- import { MemoizedSelector } from '@ngrx/store';
2
- import { DaffAuthResetPasswordInfo } from '@daffodil/auth';
3
- import { DaffOperationStateSelectors } from '@daffodil/core/state';
4
- import { DaffAuthResetPasswordReducerState, DaffAuthStateRootSlice } from '../../reducers/public_api';
5
- export interface DaffAuthResetPasswordSelectors extends DaffOperationStateSelectors<DaffAuthStateRootSlice, DaffAuthResetPasswordReducerState> {
6
- selectAuthResetPasswordState: MemoizedSelector<DaffAuthStateRootSlice, DaffAuthResetPasswordReducerState>;
7
- selectAuthResetPasswordToken: MemoizedSelector<DaffAuthStateRootSlice, DaffAuthResetPasswordInfo['token']>;
8
- }
9
- export declare const daffAuthResetPasswordSelectorFactory: () => DaffAuthResetPasswordSelectors;
@@ -1,6 +0,0 @@
1
- import * as i0 from "@angular/core";
2
- export declare class DaffAuthStateTestingModule {
3
- static ɵfac: i0.ɵɵFactoryDeclaration<DaffAuthStateTestingModule, never>;
4
- static ɵmod: i0.ɵɵNgModuleDeclaration<DaffAuthStateTestingModule, never, never, never>;
5
- static ɵinj: i0.ɵɵInjectorDeclaration<DaffAuthStateTestingModule>;
6
- }
@@ -1,16 +0,0 @@
1
- import { Action } from '@ngrx/store';
2
- import { BehaviorSubject } from 'rxjs';
3
- import { DaffAuthFacadeInterface } from '@daffodil/auth/state';
4
- import { DaffStateError } from '@daffodil/core/state';
5
- import * as i0 from "@angular/core";
6
- /**
7
- * @inheritdoc
8
- */
9
- export declare class MockDaffAuthFacade implements DaffAuthFacadeInterface {
10
- loading$: BehaviorSubject<boolean>;
11
- errors$: BehaviorSubject<DaffStateError[]>;
12
- loggedIn$: BehaviorSubject<boolean>;
13
- dispatch(action: Action): void;
14
- static ɵfac: i0.ɵɵFactoryDeclaration<MockDaffAuthFacade, never>;
15
- static ɵprov: i0.ɵɵInjectableDeclaration<MockDaffAuthFacade>;
16
- }
@@ -1,15 +0,0 @@
1
- import { Action } from '@ngrx/store';
2
- import { BehaviorSubject } from 'rxjs';
3
- import { DaffAuthLoginFacadeInterface } from '@daffodil/auth/state';
4
- import { DaffStateError } from '@daffodil/core/state';
5
- import * as i0 from "@angular/core";
6
- /**
7
- * @inheritdoc
8
- */
9
- export declare class MockDaffAuthLoginFacade implements DaffAuthLoginFacadeInterface {
10
- loading$: BehaviorSubject<boolean>;
11
- errors$: BehaviorSubject<DaffStateError[]>;
12
- dispatch(action: Action): void;
13
- static ɵfac: i0.ɵɵFactoryDeclaration<MockDaffAuthLoginFacade, never>;
14
- static ɵprov: i0.ɵɵInjectableDeclaration<MockDaffAuthLoginFacade>;
15
- }
@@ -1,15 +0,0 @@
1
- import { Action } from '@ngrx/store';
2
- import { BehaviorSubject } from 'rxjs';
3
- import { DaffAuthRegisterFacadeInterface } from '@daffodil/auth/state';
4
- import { DaffStateError } from '@daffodil/core/state';
5
- import * as i0 from "@angular/core";
6
- /**
7
- * @inheritdoc
8
- */
9
- export declare class MockDaffAuthRegisterFacade implements DaffAuthRegisterFacadeInterface {
10
- loading$: BehaviorSubject<boolean>;
11
- errors$: BehaviorSubject<DaffStateError[]>;
12
- dispatch(action: Action): void;
13
- static ɵfac: i0.ɵɵFactoryDeclaration<MockDaffAuthRegisterFacade, never>;
14
- static ɵprov: i0.ɵɵInjectableDeclaration<MockDaffAuthRegisterFacade>;
15
- }
@@ -1,16 +0,0 @@
1
- import { Action } from '@ngrx/store';
2
- import { BehaviorSubject } from 'rxjs';
3
- import { DaffAuthResetPasswordFacadeInterface } from '@daffodil/auth/state';
4
- import { DaffStateError } from '@daffodil/core/state';
5
- import * as i0 from "@angular/core";
6
- /**
7
- * @inheritdoc
8
- */
9
- export declare class MockDaffAuthResetPasswordFacade implements DaffAuthResetPasswordFacadeInterface {
10
- token$: BehaviorSubject<string>;
11
- loading$: BehaviorSubject<boolean>;
12
- errors$: BehaviorSubject<DaffStateError[]>;
13
- dispatch(action: Action): void;
14
- static ɵfac: i0.ɵɵFactoryDeclaration<MockDaffAuthResetPasswordFacade, never>;
15
- static ɵprov: i0.ɵɵInjectableDeclaration<MockDaffAuthResetPasswordFacade>;
16
- }
@@ -1,5 +0,0 @@
1
- export { DaffAuthStateTestingModule } from './auth-testing.module';
2
- export { MockDaffAuthFacade } from './mock-auth-facade';
3
- export { MockDaffAuthLoginFacade } from './mock-login-facade';
4
- export { MockDaffAuthRegisterFacade } from './mock-register-facade';
5
- export { MockDaffAuthResetPasswordFacade } from './mock-reset-password-facade';
@@ -1,12 +0,0 @@
1
- import { DaffPersistenceService } from '@daffodil/core';
2
- import * as i0 from "@angular/core";
3
- export declare class DaffAuthStorageService {
4
- private storageService;
5
- private readonly AUTH_STORAGE_TOKEN;
6
- constructor(storageService: DaffPersistenceService);
7
- getAuthToken(): string;
8
- setAuthToken(value: string): void;
9
- removeAuthToken(): void;
10
- static ɵfac: i0.ɵɵFactoryDeclaration<DaffAuthStorageService, never>;
11
- static ɵprov: i0.ɵɵInjectableDeclaration<DaffAuthStorageService>;
12
- }
@@ -1,15 +0,0 @@
1
- import { DaffAccountRegistration } from '@daffodil/auth';
2
- import { DaffModelFactory } from '@daffodil/core/testing';
3
- import * as i0 from "@angular/core";
4
- export declare class MockAccountRegistration implements DaffAccountRegistration {
5
- email: string;
6
- password: string;
7
- subscribe: boolean;
8
- firstName: string;
9
- lastName: string;
10
- }
11
- export declare class DaffAccountRegistrationFactory extends DaffModelFactory<DaffAccountRegistration> {
12
- constructor();
13
- static ɵfac: i0.ɵɵFactoryDeclaration<DaffAccountRegistrationFactory, never>;
14
- static ɵprov: i0.ɵɵInjectableDeclaration<DaffAccountRegistrationFactory>;
15
- }
@@ -1,11 +0,0 @@
1
- import { DaffAuthToken } from '@daffodil/auth';
2
- import { DaffModelFactory } from '@daffodil/core/testing';
3
- import * as i0 from "@angular/core";
4
- export declare class MockAuthToken implements DaffAuthToken {
5
- token: string;
6
- }
7
- export declare class DaffAuthTokenFactory extends DaffModelFactory<DaffAuthToken> {
8
- constructor();
9
- static ɵfac: i0.ɵɵFactoryDeclaration<DaffAuthTokenFactory, never>;
10
- static ɵprov: i0.ɵɵInjectableDeclaration<DaffAuthTokenFactory>;
11
- }
@@ -1,3 +0,0 @@
1
- export * from './account-registration.factory';
2
- export * from './auth-token.factory';
3
- export * from './reset-password-info.factory';
@@ -1,13 +0,0 @@
1
- import { DaffAuthResetPasswordInfo } from '@daffodil/auth';
2
- import { DaffModelFactory } from '@daffodil/core/testing';
3
- import * as i0 from "@angular/core";
4
- export declare class MockAuthResetPasswordInfo implements DaffAuthResetPasswordInfo {
5
- email: string;
6
- password: string;
7
- token: string;
8
- }
9
- export declare class DaffAuthResetPasswordInfoFactory extends DaffModelFactory<DaffAuthResetPasswordInfo> {
10
- constructor();
11
- static ɵfac: i0.ɵɵFactoryDeclaration<DaffAuthResetPasswordInfoFactory, never>;
12
- static ɵprov: i0.ɵɵInjectableDeclaration<DaffAuthResetPasswordInfoFactory>;
13
- }
@@ -1 +0,0 @@
1
- export * from './factories/public_api';