@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.
- package/bundles/lifeready-core.umd.js +32 -25
- package/bundles/lifeready-core.umd.js.map +1 -1
- package/bundles/lifeready-core.umd.min.js +1 -1
- package/bundles/lifeready-core.umd.min.js.map +1 -1
- package/esm2015/lib/item/item.service.js +23 -19
- package/esm2015/lib/item/item.types.js +1 -1
- package/fesm2015/lifeready-core.js +22 -18
- package/fesm2015/lifeready-core.js.map +1 -1
- package/lib/item/item.service.d.ts +11 -13
- package/lib/item/item.types.d.ts +4 -3
- package/lifeready-core.metadata.json +1 -1
- package/package.json +1 -1
|
@@ -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,
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
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: {
|
package/lib/item/item.types.d.ts
CHANGED
|
@@ -69,12 +69,13 @@ export interface BeginDeleteChildItemLinksWindowOptions {
|
|
|
69
69
|
directoryId: LrRelayIdInput;
|
|
70
70
|
requestWindowMs: number;
|
|
71
71
|
}
|
|
72
|
-
export interface
|
|
72
|
+
export interface CreateDirectoryWithStagingOptions extends Omit<SomeRequired<CreateDirectoryOptions, 'parentDirectories'>, 'asRootDirectory'> {
|
|
73
73
|
requestWindowMs: number;
|
|
74
|
-
|
|
74
|
+
onCreatedInStaging: (directory: IdKeyPair) => Promise<void>;
|
|
75
75
|
}
|
|
76
|
-
export interface
|
|
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;
|