@lifeready/core 1.1.17 → 1.1.19

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.
@@ -104,6 +104,8 @@ export interface DirectoryNode extends Node, TimeStamped, AccessControlledResour
104
104
  nChildDirectoryLinks?: DirectoryLinkNodeLrNList;
105
105
  nChildFileLinks?: FileLinkNodeLrNList;
106
106
  descendants?: Descendants;
107
+ lock?: LockField;
108
+ lockVersion?: string;
107
109
  }
108
110
  export interface FileNode extends Node, TimeStamped, AccessControlledResource {
109
111
  currentVersion?: FileVersionNode;
@@ -112,6 +114,8 @@ export interface FileNode extends Node, TimeStamped, AccessControlledResource {
112
114
  keyId?: ID;
113
115
  parentDirectoryLinks?: Connection<FileLinkNode>;
114
116
  nParentDirectoryLinks?: FileLinkNodeLrNList;
117
+ lock?: LockField;
118
+ lockVersion?: string;
115
119
  }
116
120
  export interface DirectoryLinkNode extends Node, TimeStamped {
117
121
  parentDirectory?: DirectoryNode;
@@ -35,7 +35,6 @@ export declare class CurrentUser {
35
35
  emailVerified: boolean;
36
36
  phone: string;
37
37
  phoneVerified: boolean;
38
- getAccessJwtToken: () => string;
39
38
  contactCard: MainContactCard;
40
39
  userDelete?: UserDeleteNode;
41
40
  userPlans: UserPlan[];
@@ -18,6 +18,7 @@ export interface LoginOptions {
18
18
  tpPasswordResetAutoComplete?: boolean;
19
19
  }
20
20
  export declare type LogoutListener = () => void | Promise<void>;
21
+ export declare function getAccessJwtToken(auth: AuthClass): Promise<string>;
21
22
  export declare class LifeReadyAuthService {
22
23
  private config;
23
24
  private auth;
@@ -38,6 +39,7 @@ export declare class LifeReadyAuthService {
38
39
  private logoutListeners;
39
40
  constructor(config: LifeReadyConfig, auth: AuthClass, keyFactory: KeyFactoryService, keyService: KeyService, profileService: ProfileService, keyGraphService: KeyGraphService, passwordService: PasswordService, idleService: IdleService, lrGraphQL: LrGraphQLService, tpPasswordResetProcessorService: TpPasswordResetProcessorService, persistService: PersistService, encryptionService: EncryptionService, assemblyController: TpPasswordResetAssemblyController);
40
41
  initialise(): Promise<void>;
42
+ getAccessJwtToken(): Promise<string>;
41
43
  importPassword(plainPassword: string): Promise<CryptoKey>;
42
44
  addLogoutListener(callback: LogoutListener): void;
43
45
  removeLogoutListener(callback: LogoutListener): void;
@@ -4,7 +4,6 @@ import { Duration } from 'moment';
4
4
  import { JWK } from 'node-jose';
5
5
  import { PassKeyBundle } from '../auth/auth.types';
6
6
  import { EncryptionService } from '../encryption/encryption.service';
7
- import { IdleService } from '../idle/idle.service';
8
7
  import { KeyFactoryService as KFS } from '../key/key-factory.service';
9
8
  import { KeyGraphService } from '../key/key-graph.service';
10
9
  import { LifeReadyConfig } from '../life-ready.config';
@@ -31,9 +30,8 @@ export declare class PasswordService {
31
30
  private encryptionService;
32
31
  private keyGraph;
33
32
  private webCryptoService;
34
- private idleService;
35
33
  private readonly CLIENT_NONCE_LENGTH;
36
- constructor(config: LifeReadyConfig, http: HttpClient, apollo: LrApolloService, auth: AuthClass, profileService: ProfileService, keyFactory: KFS, encryptionService: EncryptionService, keyGraph: KeyGraphService, webCryptoService: WebCryptoService, idleService: IdleService);
34
+ constructor(config: LifeReadyConfig, http: HttpClient, apollo: LrApolloService, auth: AuthClass, profileService: ProfileService, keyFactory: KFS, encryptionService: EncryptionService, keyGraph: KeyGraphService, webCryptoService: WebCryptoService);
37
35
  checkPassword(plainPassword: string): Promise<PasswordCheck>;
38
36
  getExposureCount(plainPassword: string): Promise<number>;
39
37
  getPassIdpString(passIdp: JWK.Key): any;