@lifeready/core 8.0.9 → 8.0.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.
- package/bundles/lifeready-core.umd.js +86 -71
- 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/api/query-processor/query-processor.service.js +13 -1
- package/esm2015/lib/api/types/lr-graphql.types.js +1 -1
- package/esm2015/lib/item/item.service.js +23 -19
- package/esm2015/lib/item/item.types.js +1 -1
- package/esm2015/lib/scenario/scenario.private.gql.js +1 -14
- package/esm2015/lib/scenario/scenario.service.js +35 -28
- package/fesm2015/lifeready-core.js +68 -58
- package/fesm2015/lifeready-core.js.map +1 -1
- package/lib/api/types/lr-graphql.types.d.ts +19 -5
- package/lib/item/item.service.d.ts +11 -13
- package/lib/item/item.types.d.ts +4 -3
- package/lib/scenario/scenario.service.d.ts +0 -7
- package/lifeready-core.metadata.json +1 -1
- package/package.json +1 -1
|
@@ -581,30 +581,44 @@ export interface ReceiverItems {
|
|
|
581
581
|
receiverDirectories?: Connection<ScenarioReceiverDirectoryNode>;
|
|
582
582
|
receiverFiles?: Connection<ScenarioReceiverFileNode>;
|
|
583
583
|
}
|
|
584
|
+
export interface SharedScenarioReceiverItems {
|
|
585
|
+
receiverDirectories?: Connection<SharedScenarioReceiverDirectoryNode>;
|
|
586
|
+
receiverFiles?: Connection<SharedScenarioReceiverFileNode>;
|
|
587
|
+
}
|
|
584
588
|
export interface ScenarioReceiverNodeBase extends Node, TimeStamped {
|
|
585
589
|
sharedKey?: KeyNode;
|
|
586
590
|
sharedCipherData?: string;
|
|
587
591
|
sharedCipherDataClearJson?: JSONObject;
|
|
588
592
|
pbk?: KeyNode;
|
|
589
593
|
tp?: TpNode;
|
|
594
|
+
}
|
|
595
|
+
export interface ScenarioReceiverNode extends ScenarioReceiverNodeBase {
|
|
590
596
|
receiverItems?: ReceiverItems;
|
|
591
597
|
}
|
|
592
|
-
export
|
|
593
|
-
|
|
598
|
+
export interface SharedScenarioReceiverNode extends ScenarioReceiverNodeBase {
|
|
599
|
+
receiverItems?: SharedScenarioReceiverItems;
|
|
600
|
+
}
|
|
594
601
|
export declare type ReceiverDirectoryAccessRole = AccessRoleChoice;
|
|
595
602
|
export interface ScenarioReceiverItemNode extends Node, TimeStamped {
|
|
596
|
-
receiver?: SharedScenarioReceiverNode;
|
|
597
603
|
sharedKey?: KeyNode;
|
|
598
604
|
sharedCipherData?: string;
|
|
599
605
|
sharedCipherDataClearJson?: JSONObject;
|
|
600
606
|
accessRole?: ReceiverDirectoryAccessRole;
|
|
601
|
-
wrappedItemKey?: string;
|
|
602
|
-
itemKey?: KeyNode;
|
|
603
607
|
}
|
|
604
608
|
export interface ScenarioReceiverDirectoryNode extends ScenarioReceiverItemNode {
|
|
609
|
+
receiver?: ScenarioReceiverNode;
|
|
605
610
|
directory?: DirectoryNode;
|
|
606
611
|
}
|
|
607
612
|
export interface ScenarioReceiverFileNode extends ScenarioReceiverItemNode {
|
|
613
|
+
receiver?: ScenarioReceiverNode;
|
|
614
|
+
file?: FileNode;
|
|
615
|
+
}
|
|
616
|
+
export interface SharedScenarioReceiverDirectoryNode extends ScenarioReceiverItemNode {
|
|
617
|
+
receiver?: SharedScenarioReceiverNode;
|
|
618
|
+
directory?: DirectoryNode;
|
|
619
|
+
}
|
|
620
|
+
export interface SharedScenarioReceiverFileNode extends ScenarioReceiverItemNode {
|
|
621
|
+
receiver?: SharedScenarioReceiverNode;
|
|
608
622
|
file?: FileNode;
|
|
609
623
|
}
|
|
610
624
|
export interface ScenarioClaimantNode extends Node, TimeStamped {
|
|
@@ -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;
|
|
@@ -587,13 +587,6 @@ export declare class ScenarioService extends LrService {
|
|
|
587
587
|
sharedKeyId: string;
|
|
588
588
|
assemblyKeyId: string;
|
|
589
589
|
}>;
|
|
590
|
-
prepareReceiveClaim(scenarioId: string, sharedClaimId: string): Promise<{
|
|
591
|
-
scenarioClaimId: string;
|
|
592
|
-
receiverDirectories: {
|
|
593
|
-
receiverDirectoryId: string;
|
|
594
|
-
receiverSharedKeyWrappedItemKey: any;
|
|
595
|
-
}[];
|
|
596
|
-
}>;
|
|
597
590
|
private recoverAssemblyKey;
|
|
598
591
|
private asClaimApprovers;
|
|
599
592
|
private prepareApproveClaimMutations;
|