@lifeready/core 8.0.3 → 8.0.5

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.
@@ -159,8 +159,7 @@ export declare enum DetachedShareStateChoice {
159
159
  IN_PROGRESS = "IN_PROGRESS",
160
160
  COMPLETED = "COMPLETED"
161
161
  }
162
- export interface ItemShare<ItemType> extends Node, TimeStamped {
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 ItemShareLrNList<SharedItemType> {
173
- list?: SharedItemType[];
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>;
@@ -5,38 +5,6 @@ export interface DeleteTpMutation {
5
5
  };
6
6
  }
7
7
  export declare const DeleteTpMutation: import("../_common/ast").TypedDocumentNode<DeleteTpMutation>;
8
- export interface ShareDirectoryMutation {
9
- shareDirectory: {
10
- directoryShare: {
11
- id: ID;
12
- };
13
- };
14
- }
15
- export declare const ShareDirectoryMutation: import("../_common/ast").TypedDocumentNode<ShareDirectoryMutation>;
16
- export interface UnshareDirectoryMutation {
17
- unshareDirectory: {
18
- directoryShare: {
19
- id: ID;
20
- };
21
- };
22
- }
23
- export declare const UnshareDirectoryMutation: import("../_common/ast").TypedDocumentNode<UnshareDirectoryMutation>;
24
- export interface ShareFileMutation {
25
- shareFile: {
26
- fileShare: {
27
- id: ID;
28
- };
29
- };
30
- }
31
- export declare const ShareFileMutation: import("../_common/ast").TypedDocumentNode<ShareFileMutation>;
32
- export interface UnshareFileMutation {
33
- unshareFile: {
34
- fileShare: {
35
- id: ID;
36
- };
37
- };
38
- }
39
- export declare const UnshareFileMutation: import("../_common/ast").TypedDocumentNode<UnshareFileMutation>;
40
8
  export interface CreateDirectoryShareMutationResult {
41
9
  createDirectoryShare: {
42
10
  directoryShare: {
@@ -6,8 +6,8 @@ import { ItemService } from '../item/item.service';
6
6
  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
- import { CompleteTpMkReshareMutation, DeleteTpMutation, RequestTpMkReshareMutation, RespondTpMkReshareMutation, ShareDirectoryMutation, ShareFileMutation, UnshareDirectoryMutation } from './trusted-party.gql';
10
- import { CompleteDetachedSharedItemOptions, CreateSharedItemOptions, ShareItemOptions, UnshareItemOptions, UpdateSharedItemOptions } from './trusted-party.types';
9
+ import { CompleteTpMkReshareMutation, DeleteTpMutation, RequestTpMkReshareMutation, RespondTpMkReshareMutation } from './trusted-party.gql';
10
+ import { CompleteDetachedItemShareOptions, CreateItemShareOptions, UpdateItemShareOptions } from './trusted-party.types';
11
11
  export declare class TrustedPartyService extends LrService {
12
12
  private ngZone;
13
13
  private injector;
@@ -23,46 +23,8 @@ export declare class TrustedPartyService extends LrService {
23
23
  id: string;
24
24
  };
25
25
  }>;
26
- shareDirectory(options: ShareItemOptions): Promise<ShareDirectoryMutation>;
27
- shareDirectoryMutation(options: ShareItemOptions): Promise<LrMutation<ShareDirectoryMutation, {
28
- input: {
29
- id: string;
30
- tpId: string;
31
- accessRole: import("../api/types").AccessRoleChoice;
32
- keyId: string;
33
- wrappingKeyId: string;
34
- wrappedKey: string;
35
- };
36
- }>>;
37
- shareFile(options: ShareItemOptions): Promise<ShareFileMutation>;
38
- shareFileMutation(options: ShareItemOptions): Promise<LrMutation<ShareFileMutation, {
39
- input: {
40
- id: string;
41
- tpId: string;
42
- accessRole: import("../api/types").AccessRoleChoice;
43
- keyId: string;
44
- wrappingKeyId: string;
45
- wrappedKey: string;
46
- };
47
- }>>;
48
- private prepareShareItemMutation;
49
- unshareDirectory(options: UnshareItemOptions): Promise<UnshareDirectoryMutation>;
50
- unshareDirectoryMutation(options: UnshareItemOptions): Promise<LrMutation<UnshareDirectoryMutation, {
51
- input: {
52
- id: string;
53
- tpId: string;
54
- };
55
- }>>;
56
- unshareFile(options: UnshareItemOptions): Promise<UnshareDirectoryMutation>;
57
- unshareFileMutation(options: UnshareItemOptions): Promise<LrMutation<UnshareDirectoryMutation, {
58
- input: {
59
- id: string;
60
- tpId: string;
61
- };
62
- }>>;
63
- private unshareItemMutation;
64
- createDirectoryShare(options: CreateSharedItemOptions): Promise<import("./trusted-party.gql").CreateDirectoryShareMutationResult>;
65
- createDirectoryShareMutation(options: CreateSharedItemOptions): Promise<LrMutation<import("./trusted-party.gql").CreateDirectoryShareMutationResult, {
26
+ createDirectoryShare(options: CreateItemShareOptions): Promise<import("./trusted-party.gql").CreateDirectoryShareMutationResult>;
27
+ createDirectoryShareMutation(options: CreateItemShareOptions): Promise<LrMutation<import("./trusted-party.gql").CreateDirectoryShareMutationResult, {
66
28
  input: {
67
29
  id: string;
68
30
  tpId: string;
@@ -73,8 +35,8 @@ export declare class TrustedPartyService extends LrService {
73
35
  shareType: import("../api/types").ShareTypeChoice;
74
36
  };
75
37
  }>>;
76
- createFileShare(options: CreateSharedItemOptions): Promise<import("./trusted-party.gql").CreateFileShareMutationResult>;
77
- createFileShareMutation(options: CreateSharedItemOptions): Promise<LrMutation<import("./trusted-party.gql").CreateFileShareMutationResult, {
38
+ createFileShare(options: CreateItemShareOptions): Promise<import("./trusted-party.gql").CreateFileShareMutationResult>;
39
+ createFileShareMutation(options: CreateItemShareOptions): Promise<LrMutation<import("./trusted-party.gql").CreateFileShareMutationResult, {
78
40
  input: {
79
41
  id: string;
80
42
  tpId: string;
@@ -85,30 +47,30 @@ export declare class TrustedPartyService extends LrService {
85
47
  shareType: import("../api/types").ShareTypeChoice;
86
48
  };
87
49
  }>>;
88
- private prepareCreateSharedItemMutation;
89
- updateDirectoryShare(options: UpdateSharedItemOptions): Promise<import("./trusted-party.gql").UpdateDirectoryShareMutationResult>;
90
- updateDirectoryShareMutation(options: UpdateSharedItemOptions): Promise<LrMutation<import("./trusted-party.gql").UpdateDirectoryShareMutationResult, {
50
+ private prepareCreateItemShareMutation;
51
+ updateDirectoryShare(options: UpdateItemShareOptions): Promise<import("./trusted-party.gql").UpdateDirectoryShareMutationResult>;
52
+ updateDirectoryShareMutation(options: UpdateItemShareOptions): Promise<LrMutation<import("./trusted-party.gql").UpdateDirectoryShareMutationResult, {
91
53
  input: {
92
54
  id: string;
93
55
  accessRole: import("../api/types").AccessRoleChoice;
94
56
  };
95
57
  }>>;
96
- updateFileShare(options: UpdateSharedItemOptions): Promise<import("./trusted-party.gql").UpdateFileShareMutationResult>;
97
- updateFileShareMutation(options: UpdateSharedItemOptions): Promise<LrMutation<import("./trusted-party.gql").UpdateFileShareMutationResult, {
58
+ updateFileShare(options: UpdateItemShareOptions): Promise<import("./trusted-party.gql").UpdateFileShareMutationResult>;
59
+ updateFileShareMutation(options: UpdateItemShareOptions): Promise<LrMutation<import("./trusted-party.gql").UpdateFileShareMutationResult, {
98
60
  input: {
99
61
  id: string;
100
62
  accessRole: import("../api/types").AccessRoleChoice;
101
63
  };
102
64
  }>>;
103
- private prepareUpdateSharedItemMutation;
65
+ private prepareUpdateItemShareMutation;
104
66
  deleteDirectoryShare(id: string): Promise<import("./trusted-party.gql").DeleteDirectoryShareMutationResult>;
105
67
  deleteDirectoryShareMutation(id: string): Promise<LrMutation<import("./trusted-party.gql").DeleteDirectoryShareMutationResult, {
106
68
  input: {
107
69
  id: string;
108
70
  };
109
71
  }>>;
110
- completeDetachedDirectoryShare(options: CompleteDetachedSharedItemOptions): Promise<import("./trusted-party.gql").CompleteDetachedDirectoryShareMutationResult>;
111
- completeDetachedDirectoryShareMutation(options: CompleteDetachedSharedItemOptions): Promise<LrMutation<import("./trusted-party.gql").CompleteDetachedDirectoryShareMutationResult, {
72
+ completeDetachedDirectoryShare(options: CompleteDetachedItemShareOptions): Promise<import("./trusted-party.gql").CompleteDetachedDirectoryShareMutationResult>;
73
+ completeDetachedDirectoryShareMutation(options: CompleteDetachedItemShareOptions): Promise<LrMutation<import("./trusted-party.gql").CompleteDetachedDirectoryShareMutationResult, {
112
74
  input: {
113
75
  id: string;
114
76
  keyId: string;
@@ -116,8 +78,8 @@ export declare class TrustedPartyService extends LrService {
116
78
  wrappedKey: string;
117
79
  };
118
80
  }>>;
119
- completeDetachedFileShare(options: CompleteDetachedSharedItemOptions): Promise<import("./trusted-party.gql").CompleteDetachedFileShareMutationResult>;
120
- completeDetachedFileShareMutation(options: CompleteDetachedSharedItemOptions): Promise<LrMutation<import("./trusted-party.gql").CompleteDetachedFileShareMutationResult, {
81
+ completeDetachedFileShare(options: CompleteDetachedItemShareOptions): Promise<import("./trusted-party.gql").CompleteDetachedFileShareMutationResult>;
82
+ completeDetachedFileShareMutation(options: CompleteDetachedItemShareOptions): Promise<LrMutation<import("./trusted-party.gql").CompleteDetachedFileShareMutationResult, {
121
83
  input: {
122
84
  id: string;
123
85
  keyId: string;
@@ -125,7 +87,7 @@ export declare class TrustedPartyService extends LrService {
125
87
  wrappedKey: string;
126
88
  };
127
89
  }>>;
128
- private prepareCompleteDetachedSharedItemMutation;
90
+ private prepareCompleteDetachedItemShareMutation;
129
91
  requestMkReshareMutation(tpId: LrRelayIdInput): Promise<LrMutation<RequestTpMkReshareMutation, {
130
92
  input: {
131
93
  tpId: string;
@@ -1,16 +1,5 @@
1
1
  import { AccessRoleChoice, LrRelayIdInput, ShareTypeChoice } from '../api/types';
2
- export interface ShareItemOptions {
3
- itemId: LrRelayIdInput;
4
- itemKeyId?: LrRelayIdInput;
5
- tpId: LrRelayIdInput;
6
- tpSharedKeyId?: LrRelayIdInput;
7
- accessRole: AccessRoleChoice;
8
- }
9
- export interface UnshareItemOptions {
10
- itemId: string;
11
- tpId: string;
12
- }
13
- export interface CreateSharedItemOptions {
2
+ export interface CreateItemShareOptions {
14
3
  itemId: LrRelayIdInput;
15
4
  itemKeyId?: LrRelayIdInput;
16
5
  tpId: LrRelayIdInput;
@@ -18,11 +7,11 @@ export interface CreateSharedItemOptions {
18
7
  accessRole: AccessRoleChoice;
19
8
  shareType: ShareTypeChoice;
20
9
  }
21
- export interface UpdateSharedItemOptions {
22
- sharedItemId: LrRelayIdInput;
10
+ export interface UpdateItemShareOptions {
11
+ itemShareId: LrRelayIdInput;
23
12
  accessRole: AccessRoleChoice;
24
13
  }
25
- export interface CompleteDetachedSharedItemOptions {
26
- sharedItemId: LrRelayIdInput;
14
+ export interface CompleteDetachedItemShareOptions {
15
+ itemShareId: LrRelayIdInput;
27
16
  itemKeyId?: LrRelayIdInput;
28
17
  }