@lifeready/core 8.0.3 → 8.0.4
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 +16 -18
- 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/types/lr-graphql.types.js +1 -1
- package/esm2015/lib/trusted-party/trusted-party.service.js +16 -18
- package/esm2015/lib/trusted-party/trusted-party.types.js +1 -1
- package/fesm2015/lifeready-core.js +15 -17
- package/fesm2015/lifeready-core.js.map +1 -1
- package/lib/api/types/lr-graphql.types.d.ts +6 -4
- package/lib/trusted-party/trusted-party.service.d.ts +16 -16
- package/lib/trusted-party/trusted-party.types.d.ts +5 -5
- package/lifeready-core.metadata.json +1 -1
- package/package.json +1 -1
|
@@ -159,8 +159,7 @@ export declare enum DetachedShareStateChoice {
|
|
|
159
159
|
IN_PROGRESS = "IN_PROGRESS",
|
|
160
160
|
COMPLETED = "COMPLETED"
|
|
161
161
|
}
|
|
162
|
-
export interface
|
|
163
|
-
item?: ItemType;
|
|
162
|
+
export interface ItemShareBase extends Node, TimeStamped {
|
|
164
163
|
tp?: TpNode;
|
|
165
164
|
role?: AccessRoleChoice;
|
|
166
165
|
issuer?: PublicProfile;
|
|
@@ -169,8 +168,11 @@ export interface ItemShare<ItemType> extends Node, TimeStamped {
|
|
|
169
168
|
shareType?: ShareTypeChoice;
|
|
170
169
|
detachedShareState?: DetachedShareStateChoice;
|
|
171
170
|
}
|
|
172
|
-
export interface
|
|
173
|
-
|
|
171
|
+
export interface ItemShare<ItemType> extends ItemShareBase {
|
|
172
|
+
item?: ItemType;
|
|
173
|
+
}
|
|
174
|
+
export interface ItemShareLrNList<ItemShareType> {
|
|
175
|
+
list?: ItemShareType[];
|
|
174
176
|
}
|
|
175
177
|
export declare type DirectoryShareNode = ItemShare<DirectoryNode>;
|
|
176
178
|
export declare type FileShareNode = ItemShare<FileNode>;
|
|
@@ -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 { CompleteTpMkReshareMutation, DeleteTpMutation, RequestTpMkReshareMutation, RespondTpMkReshareMutation, ShareDirectoryMutation, ShareFileMutation, UnshareDirectoryMutation } from './trusted-party.gql';
|
|
10
|
-
import {
|
|
10
|
+
import { CompleteDetachedItemShareOptions, CreateItemShareOptions, ShareItemOptions, UnshareItemOptions, UpdateItemShareOptions } from './trusted-party.types';
|
|
11
11
|
export declare class TrustedPartyService extends LrService {
|
|
12
12
|
private ngZone;
|
|
13
13
|
private injector;
|
|
@@ -61,8 +61,8 @@ export declare class TrustedPartyService extends LrService {
|
|
|
61
61
|
};
|
|
62
62
|
}>>;
|
|
63
63
|
private unshareItemMutation;
|
|
64
|
-
createDirectoryShare(options:
|
|
65
|
-
createDirectoryShareMutation(options:
|
|
64
|
+
createDirectoryShare(options: CreateItemShareOptions): Promise<import("./trusted-party.gql").CreateDirectoryShareMutationResult>;
|
|
65
|
+
createDirectoryShareMutation(options: CreateItemShareOptions): Promise<LrMutation<import("./trusted-party.gql").CreateDirectoryShareMutationResult, {
|
|
66
66
|
input: {
|
|
67
67
|
id: string;
|
|
68
68
|
tpId: string;
|
|
@@ -73,8 +73,8 @@ export declare class TrustedPartyService extends LrService {
|
|
|
73
73
|
shareType: import("../api/types").ShareTypeChoice;
|
|
74
74
|
};
|
|
75
75
|
}>>;
|
|
76
|
-
createFileShare(options:
|
|
77
|
-
createFileShareMutation(options:
|
|
76
|
+
createFileShare(options: CreateItemShareOptions): Promise<import("./trusted-party.gql").CreateFileShareMutationResult>;
|
|
77
|
+
createFileShareMutation(options: CreateItemShareOptions): Promise<LrMutation<import("./trusted-party.gql").CreateFileShareMutationResult, {
|
|
78
78
|
input: {
|
|
79
79
|
id: string;
|
|
80
80
|
tpId: string;
|
|
@@ -85,30 +85,30 @@ export declare class TrustedPartyService extends LrService {
|
|
|
85
85
|
shareType: import("../api/types").ShareTypeChoice;
|
|
86
86
|
};
|
|
87
87
|
}>>;
|
|
88
|
-
private
|
|
89
|
-
updateDirectoryShare(options:
|
|
90
|
-
updateDirectoryShareMutation(options:
|
|
88
|
+
private prepareCreateItemShareMutation;
|
|
89
|
+
updateDirectoryShare(options: UpdateItemShareOptions): Promise<import("./trusted-party.gql").UpdateDirectoryShareMutationResult>;
|
|
90
|
+
updateDirectoryShareMutation(options: UpdateItemShareOptions): Promise<LrMutation<import("./trusted-party.gql").UpdateDirectoryShareMutationResult, {
|
|
91
91
|
input: {
|
|
92
92
|
id: string;
|
|
93
93
|
accessRole: import("../api/types").AccessRoleChoice;
|
|
94
94
|
};
|
|
95
95
|
}>>;
|
|
96
|
-
updateFileShare(options:
|
|
97
|
-
updateFileShareMutation(options:
|
|
96
|
+
updateFileShare(options: UpdateItemShareOptions): Promise<import("./trusted-party.gql").UpdateFileShareMutationResult>;
|
|
97
|
+
updateFileShareMutation(options: UpdateItemShareOptions): Promise<LrMutation<import("./trusted-party.gql").UpdateFileShareMutationResult, {
|
|
98
98
|
input: {
|
|
99
99
|
id: string;
|
|
100
100
|
accessRole: import("../api/types").AccessRoleChoice;
|
|
101
101
|
};
|
|
102
102
|
}>>;
|
|
103
|
-
private
|
|
103
|
+
private prepareUpdateItemShareMutation;
|
|
104
104
|
deleteDirectoryShare(id: string): Promise<import("./trusted-party.gql").DeleteDirectoryShareMutationResult>;
|
|
105
105
|
deleteDirectoryShareMutation(id: string): Promise<LrMutation<import("./trusted-party.gql").DeleteDirectoryShareMutationResult, {
|
|
106
106
|
input: {
|
|
107
107
|
id: string;
|
|
108
108
|
};
|
|
109
109
|
}>>;
|
|
110
|
-
completeDetachedDirectoryShare(options:
|
|
111
|
-
completeDetachedDirectoryShareMutation(options:
|
|
110
|
+
completeDetachedDirectoryShare(options: CompleteDetachedItemShareOptions): Promise<import("./trusted-party.gql").CompleteDetachedDirectoryShareMutationResult>;
|
|
111
|
+
completeDetachedDirectoryShareMutation(options: CompleteDetachedItemShareOptions): Promise<LrMutation<import("./trusted-party.gql").CompleteDetachedDirectoryShareMutationResult, {
|
|
112
112
|
input: {
|
|
113
113
|
id: string;
|
|
114
114
|
keyId: string;
|
|
@@ -116,8 +116,8 @@ export declare class TrustedPartyService extends LrService {
|
|
|
116
116
|
wrappedKey: string;
|
|
117
117
|
};
|
|
118
118
|
}>>;
|
|
119
|
-
completeDetachedFileShare(options:
|
|
120
|
-
completeDetachedFileShareMutation(options:
|
|
119
|
+
completeDetachedFileShare(options: CompleteDetachedItemShareOptions): Promise<import("./trusted-party.gql").CompleteDetachedFileShareMutationResult>;
|
|
120
|
+
completeDetachedFileShareMutation(options: CompleteDetachedItemShareOptions): Promise<LrMutation<import("./trusted-party.gql").CompleteDetachedFileShareMutationResult, {
|
|
121
121
|
input: {
|
|
122
122
|
id: string;
|
|
123
123
|
keyId: string;
|
|
@@ -125,7 +125,7 @@ export declare class TrustedPartyService extends LrService {
|
|
|
125
125
|
wrappedKey: string;
|
|
126
126
|
};
|
|
127
127
|
}>>;
|
|
128
|
-
private
|
|
128
|
+
private prepareCompleteDetachedItemShareMutation;
|
|
129
129
|
requestMkReshareMutation(tpId: LrRelayIdInput): Promise<LrMutation<RequestTpMkReshareMutation, {
|
|
130
130
|
input: {
|
|
131
131
|
tpId: string;
|
|
@@ -10,7 +10,7 @@ export interface UnshareItemOptions {
|
|
|
10
10
|
itemId: string;
|
|
11
11
|
tpId: string;
|
|
12
12
|
}
|
|
13
|
-
export interface
|
|
13
|
+
export interface CreateItemShareOptions {
|
|
14
14
|
itemId: LrRelayIdInput;
|
|
15
15
|
itemKeyId?: LrRelayIdInput;
|
|
16
16
|
tpId: LrRelayIdInput;
|
|
@@ -18,11 +18,11 @@ export interface CreateSharedItemOptions {
|
|
|
18
18
|
accessRole: AccessRoleChoice;
|
|
19
19
|
shareType: ShareTypeChoice;
|
|
20
20
|
}
|
|
21
|
-
export interface
|
|
22
|
-
|
|
21
|
+
export interface UpdateItemShareOptions {
|
|
22
|
+
itemShareId: LrRelayIdInput;
|
|
23
23
|
accessRole: AccessRoleChoice;
|
|
24
24
|
}
|
|
25
|
-
export interface
|
|
26
|
-
|
|
25
|
+
export interface CompleteDetachedItemShareOptions {
|
|
26
|
+
itemShareId: LrRelayIdInput;
|
|
27
27
|
itemKeyId?: LrRelayIdInput;
|
|
28
28
|
}
|