@lifeready/core 8.0.9 → 8.0.10

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.
@@ -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 { ArchiveDirectoryOptions, BeginDeleteChildItemLinksWindowOptions, ChangeDirectoryParentsOptions, ChangeFileParentsOptions, CreateDirectoryOptions, CreateDirectoryTreeOptions, CreateFileOptions, CreateFileUsingTempOptions, DownloadFileContentOptions, IdKeyPair, ParentDirectoryInput, ParentRootDirectoryInput, RevertFileOptions, SetDirectoryConfidentialOptions, SetFileConfidentialOptions, UnarchiveDirectoryOptions, UpdateDirectoryOptions, UpdateFileOptions } from './item.types';
10
+ import { ArchiveDirectoryOptions, BeginDeleteChildItemLinksWindowOptions, ChangeDirectoryParentsOptions, ChangeFileParentsOptions, CreateDirectoryOptions, CreateDirectoryWithStagingOptions, CreateFileOptions, CreateFileWithStagingOptions, DownloadFileContentOptions, IdKeyPair, ParentDirectoryInput, ParentRootDirectoryInput, RevertFileOptions, SetDirectoryConfidentialOptions, SetFileConfidentialOptions, UnarchiveDirectoryOptions, UpdateDirectoryOptions, UpdateFileOptions } from './item.types';
11
11
  export declare class ItemService extends LrService {
12
12
  private ngZone;
13
13
  private injector;
@@ -151,29 +151,27 @@ export declare class ItemService extends LrService {
151
151
  *
152
152
  */
153
153
  ensureTempDirectory(): Promise<IdKeyPair>;
154
- createDirectoryTree(options: CreateDirectoryTreeOptions): Promise<import("./item.gql").ChangeDirectoryParentsMutationResult>;
154
+ createDirectoryWithStaging(options: CreateDirectoryWithStagingOptions): Promise<import("./item.gql").ChangeDirectoryParentsMutationResult>;
155
155
  /**
156
156
  * You must run this mutation within the temp directory cleanup window on the
157
157
  * server, otherwise the temp directory will get cleaned up.
158
158
  *
159
159
  */
160
- createDirectoryTreeMutation(options: CreateDirectoryTreeOptions): Promise<LrMutation<import("./item.gql").ChangeDirectoryParentsMutationResult, {
160
+ createDirectoryWithStagingMutation(options: CreateDirectoryWithStagingOptions): Promise<LrMutation<import("./item.gql").ChangeDirectoryParentsMutationResult, {
161
161
  input: {
162
162
  directoryId: string;
163
163
  directoriesToRemove: string[];
164
164
  directoriesToAdd: ParentDirectoryInput[];
165
165
  };
166
166
  }>>;
167
- createFileUsingTempMutation(options: CreateFileUsingTempOptions): Promise<{
168
- mutation: LrMutation<import("./item.gql").ChangeFileParentsMutationResult, {
169
- input: {
170
- fileId: string;
171
- directoriesToRemove: string[];
172
- directoriesToAdd: ParentDirectoryInput[];
173
- };
174
- }>;
175
- file: IdKeyPair;
176
- }>;
167
+ createFileWithStaging(options: CreateFileWithStagingOptions): Promise<import("./item.gql").ChangeFileParentsMutationResult>;
168
+ createFileWithStagingMutation(options: CreateFileWithStagingOptions): Promise<LrMutation<import("./item.gql").ChangeFileParentsMutationResult, {
169
+ input: {
170
+ fileId: string;
171
+ directoriesToRemove: string[];
172
+ directoriesToAdd: ParentDirectoryInput[];
173
+ };
174
+ }>>;
177
175
  setFileConfidential(options: SetFileConfidentialOptions): Promise<import("./item.gql").SetFileConfidentialMutationResult>;
178
176
  setFileConfidentialMutation(options: SetFileConfidentialOptions): Promise<LrMutation<import("./item.gql").SetFileConfidentialMutationResult, {
179
177
  input: {
@@ -69,12 +69,13 @@ export interface BeginDeleteChildItemLinksWindowOptions {
69
69
  directoryId: LrRelayIdInput;
70
70
  requestWindowMs: number;
71
71
  }
72
- export interface CreateDirectoryTreeOptions extends Omit<SomeRequired<CreateDirectoryOptions, 'parentDirectories'>, 'asRootDirectory'> {
72
+ export interface CreateDirectoryWithStagingOptions extends Omit<SomeRequired<CreateDirectoryOptions, 'parentDirectories'>, 'asRootDirectory'> {
73
73
  requestWindowMs: number;
74
- createContent: (directory: IdKeyPair) => Promise<void>;
74
+ onCreatedInStaging: (directory: IdKeyPair) => Promise<void>;
75
75
  }
76
- export interface CreateFileUsingTempOptions extends CreateFileOptions {
76
+ export interface CreateFileWithStagingOptions extends CreateFileOptions {
77
77
  requestWindowMs: number;
78
+ onCreatedInStaging: (file: IdKeyPair) => Promise<void>;
78
79
  }
79
80
  export interface SetFileConfidentialOptions {
80
81
  fileId: LrRelayIdInput;