@lifeready/core 5.0.11 → 5.0.12

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.
@@ -75,7 +75,7 @@ export declare class LrGraphQLService {
75
75
  }>(lrMutation: LrMutationMayAsync<T, TVariables>, options?: LrMutationOptions<T, TVariables>): Promise<T>;
76
76
  lrMutate<T, TVariables = {
77
77
  [key: string]: any;
78
- }>(lrMutations: LrMutationMayAsync<T, TVariables>[] | LrMutationMayAsync<T, TVariables>, options?: LrMutationOptions): any;
78
+ }>(lrMutations: LrMutationMayAsync<T, TVariables>[], options?: LrMutationOptions): any;
79
79
  }
80
80
  export declare type LrMutationMayAsync<T, TVariables = OperationVariables> = MayAsync<LrMutationBase<T, TVariables>>;
81
81
  export {};
@@ -11,7 +11,7 @@ import { KcConfig } from '../life-ready.config';
11
11
  import { PasswordService } from '../password/password.service';
12
12
  import { PersistService } from '../persist/persist.service';
13
13
  import { TpPasswordResetAssemblyController } from '../tp-password-reset/tp-password-reset.controller';
14
- import { AuthUser, LoginChallenge, LoginOptions, LoginResult, LogoutListener } from './auth2.types';
14
+ import { AuthUser, LoginChallenge, LoginOptions, LoginResult, LogoutListener, LrCognitoUserAttribute } from './auth2.types';
15
15
  export declare class Auth2Service extends LrService {
16
16
  private ngZone;
17
17
  private injector;
@@ -67,4 +67,5 @@ export declare class Auth2Service extends LrService {
67
67
  * Clears the caches user. So we can simulate a page refresh and test getUser().
68
68
  */
69
69
  debugClearUser(): void;
70
+ getCurrentUserAttibutes(): Promise<LrCognitoUserAttribute[]>;
70
71
  }
@@ -1,4 +1,5 @@
1
1
  import { CognitoUser } from '@aws-amplify/auth';
2
+ import { CognitoUserAttribute } from 'amazon-cognito-identity-js';
2
3
  import { JSONObject, TpClaimState, UserNode } from '../api/types';
3
4
  import { PassIdpParams } from '../key/key.types';
4
5
  export declare type AuthUser = Pick<Required<UserNode>, 'username'> & {
@@ -40,6 +41,7 @@ export declare type LrCognitoUser = CognitoUser & {
40
41
  challengeName: CognitoChallengeName;
41
42
  challengeParam: JSONObject;
42
43
  };
44
+ export declare type LrCognitoUserAttribute = CognitoUserAttribute;
43
45
  export interface LoginChallenge {
44
46
  cognitoUser: LrCognitoUser;
45
47
  recoveryStatus: RecoveryStatus;
@@ -1,4 +1,5 @@
1
1
  import { JSONObject, LinkTypeField, LrRelayIdInput } from '../api/types';
2
+ import { SomeRequired } from '../_common/types';
2
3
  export interface IdKeyPair {
3
4
  id: string;
4
5
  keyId: string;
@@ -73,7 +74,7 @@ export interface BeginDeleteChildItemLinksWindowOptions {
73
74
  directoryId: LrRelayIdInput;
74
75
  requestWindowMs: number;
75
76
  }
76
- export interface CreateDirectoryTreeOptions extends Omit<CreateDirectoryOptions, 'asRootDirectory'> {
77
+ export interface CreateDirectoryTreeOptions extends Omit<SomeRequired<CreateDirectoryOptions, 'parentDirectories'>, 'asRootDirectory'> {
77
78
  requestWindowMs: number;
78
79
  createContent: (directory: IdKeyPair) => void | Promise<void>;
79
80
  }