@lifeready/core 1.1.9 → 1.1.11

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.
@@ -608,3 +608,6 @@ export interface LockField {
608
608
  version?: string;
609
609
  state?: LockState;
610
610
  }
611
+ export interface ServerConfig {
612
+ relayConnectionMaxLimit?: number;
613
+ }
@@ -7,7 +7,7 @@ import { KeyFactoryService } from '../key/key-factory.service';
7
7
  import { KeyGraphService } from '../key/key-graph.service';
8
8
  import { KeyService } from '../key/key.service';
9
9
  import { LockService } from '../lock/lock.service';
10
- import { BeginDeleteChildItemLinksWindowOptions, ChangeDirectoryParentsOptions, ChangeFileParentsOptions, CreateDirectoryOptions, CreateDirectoryTreeOptions, CreateFileOptions, DownloadFileContentOptions, FileParentDirectoryInput, IdKeyId, ParentDirectoryInput, ParentRootDirectoryInput, RevertFileOptions, SetDirectoryConfidentialOptions, SetFileConfidentialOptions, UpdateDirectoryOptions, UpdateFileOptions } from './item2.types';
10
+ import { BeginDeleteChildItemLinksWindowOptions, ChangeDirectoryParentsOptions, ChangeFileParentsOptions, CreateDirectoryOptions, CreateDirectoryTreeOptions, CreateFileOptions, DownloadFileContentOptions, FileParentDirectoryInput, IdKeyPair, ParentDirectoryInput, ParentRootDirectoryInput, RevertFileOptions, SetDirectoryConfidentialOptions, SetFileConfidentialOptions, UpdateDirectoryOptions, UpdateFileOptions } from './item2.types';
11
11
  export declare class Item2Service extends LrService {
12
12
  private ngZone;
13
13
  private injector;
@@ -194,7 +194,7 @@ export declare class Item2Service extends LrService {
194
194
  * @returns The ID of the temp directory
195
195
  *
196
196
  */
197
- ensureTempDirectory(): Promise<IdKeyId>;
197
+ ensureTempDirectory(): Promise<IdKeyPair>;
198
198
  createDirectoryTree(options: CreateDirectoryTreeOptions): Promise<import("./item2.gql").ChangeDirectoryParentsMutationResult>;
199
199
  /**
200
200
  * You must run this mutation within the temp directory cleanup window on the
@@ -1,8 +1,9 @@
1
1
  import { JSONObject, LinkTypeField, LrRelayIdInput } from '../api/types';
2
- export interface IdKeyId {
2
+ export interface IdKeyPair {
3
3
  id: string;
4
4
  keyId: string;
5
5
  }
6
+ export declare type IdKeyId = IdKeyPair;
6
7
  export interface ParentDirectoryOptions {
7
8
  directoryId: LrRelayIdInput;
8
9
  wrappingKeyId?: LrRelayIdInput;
@@ -74,7 +75,7 @@ export interface BeginDeleteChildItemLinksWindowOptions {
74
75
  }
75
76
  export interface CreateDirectoryTreeOptions extends Omit<CreateDirectoryOptions, 'asRootDirectory'> {
76
77
  requestWindowMs: number;
77
- createContent: (directory: IdKeyId) => void | Promise<void>;
78
+ createContent: (directory: IdKeyPair) => void | Promise<void>;
78
79
  }
79
80
  export interface SetFileConfidentialOptions {
80
81
  fileId: LrRelayIdInput;
@@ -0,0 +1,5 @@
1
+ import { ServerConfig } from '../api/types';
2
+ export interface ServerConfigQueryResult {
3
+ serverConfig: Pick<ServerConfig, 'relayConnectionMaxLimit'>;
4
+ }
5
+ export declare const ServerConfigQuery: import("../_common/ast").TypedDocumentNode<ServerConfigQueryResult>;
@@ -0,0 +1,9 @@
1
+ import { Injector, NgZone } from '@angular/core';
2
+ import { LrService } from '../api/lr-graphql';
3
+ export declare class ServerConfigService extends LrService {
4
+ private ngZone;
5
+ private injector;
6
+ private serverConfig;
7
+ constructor(ngZone: NgZone, injector: Injector);
8
+ getConfig(): Promise<Pick<import("../api/types").ServerConfig, "relayConnectionMaxLimit">>;
9
+ }