@lifeready/core 8.0.4 → 8.0.6

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.
@@ -1,5 +1,8 @@
1
1
  import { Connection, DateTime, GenericScalar, ID, JSONObject, JSONString, LrEmail, Node, TimeStamped } from './graphql.types';
2
2
  export declare function mapEdges<T>(connection: Connection<T>): T[];
3
+ export interface LrNList<T> {
4
+ list?: T[];
5
+ }
3
6
  export interface FeaturesNode {
4
7
  myVault?: string[];
5
8
  tpVault?: string[];
@@ -113,14 +116,14 @@ export interface DirectoryNode extends Node, TimeStamped, AccessControlledResour
113
116
  childFileLinks?: Connection<FileLinkNode>;
114
117
  childDirectoryLinks?: Connection<DirectoryLinkNode>;
115
118
  parentDirectoryLinks?: Connection<DirectoryLinkNode>;
116
- nParentDirectoryLinks?: DirectoryLinkNodeLrNList;
117
- nChildDirectoryLinks?: DirectoryLinkNodeLrNList;
118
- nChildFileLinks?: FileLinkNodeLrNList;
119
+ nParentDirectoryLinks?: LrNList<DirectoryLinkNode>;
120
+ nChildDirectoryLinks?: LrNList<DirectoryLinkNode>;
121
+ nChildFileLinks?: LrNList<FileLinkNode>;
119
122
  descendants?: Descendants;
120
123
  lock?: LockField;
121
124
  lockVersion?: string;
122
125
  shares?: Connection<DirectoryShareNode>;
123
- nShares?: DirectoryShareNodeLrNList;
126
+ nShares?: LrNList<DirectoryShareNode>;
124
127
  reminder?: ReminderNode;
125
128
  }
126
129
  export interface FileNode extends Node, TimeStamped, AccessControlledResource {
@@ -129,11 +132,11 @@ export interface FileNode extends Node, TimeStamped, AccessControlledResource {
129
132
  versions?: Connection<FileVersionNode>;
130
133
  keyId?: ID;
131
134
  parentDirectoryLinks?: Connection<FileLinkNode>;
132
- nParentDirectoryLinks?: FileLinkNodeLrNList;
135
+ nParentDirectoryLinks?: LrNList<FileLinkNode>;
133
136
  lock?: LockField;
134
137
  lockVersion?: string;
135
138
  shares?: Connection<FileShareNode>;
136
- nShares?: FileShareNodeLrNList;
139
+ nShares?: LrNList<FileShareNode>;
137
140
  }
138
141
  export interface DirectoryLinkNode extends Node, TimeStamped {
139
142
  parentDirectory?: DirectoryNode;
@@ -145,12 +148,6 @@ export interface FileLinkNode extends Node, TimeStamped {
145
148
  childFile?: FileNode;
146
149
  linkType?: LinkTypeField;
147
150
  }
148
- export interface DirectoryLinkNodeLrNList {
149
- list?: DirectoryLinkNode[];
150
- }
151
- export interface FileLinkNodeLrNList {
152
- list?: FileLinkNode[];
153
- }
154
151
  export declare enum ShareTypeChoice {
155
152
  TP = "TP",
156
153
  DETACHED = "DETACHED"
@@ -171,13 +168,8 @@ export interface ItemShareBase extends Node, TimeStamped {
171
168
  export interface ItemShare<ItemType> extends ItemShareBase {
172
169
  item?: ItemType;
173
170
  }
174
- export interface ItemShareLrNList<ItemShareType> {
175
- list?: ItemShareType[];
176
- }
177
171
  export declare type DirectoryShareNode = ItemShare<DirectoryNode>;
178
172
  export declare type FileShareNode = ItemShare<FileNode>;
179
- export declare type DirectoryShareNodeLrNList = ItemShareLrNList<DirectoryShareNode>;
180
- export declare type FileShareNodeLrNList = ItemShareLrNList<FileShareNode>;
181
173
  export interface Descendants {
182
174
  directories?: Connection<DirectoryNode>;
183
175
  files?: Connection<FileNode>;
@@ -664,7 +656,8 @@ export interface NotificationManagementState extends Node, TimeStamped {
664
656
  }
665
657
  export declare enum LinkTypeField {
666
658
  HARD = "HARD",
667
- SOFT = "SOFT"
659
+ SOFT = "SOFT",
660
+ REFERENCE = "REFERENCE"
668
661
  }
669
662
  export interface MessageNode extends Node, TimeStamped {
670
663
  sender?: UserNode;
@@ -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, DownloadFileContentOptions, FileParentDirectoryInput, IdKeyPair, ParentDirectoryInput, ParentRootDirectoryInput, RevertFileOptions, SetDirectoryConfidentialOptions, SetFileConfidentialOptions, UnarchiveDirectoryOptions, UpdateDirectoryOptions, UpdateFileOptions } from './item.types';
10
+ import { ArchiveDirectoryOptions, BeginDeleteChildItemLinksWindowOptions, ChangeDirectoryParentsOptions, ChangeFileParentsOptions, CreateDirectoryOptions, CreateDirectoryTreeOptions, CreateFileOptions, 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;
@@ -56,7 +56,7 @@ export declare class ItemService extends LrService {
56
56
  createFile(options: CreateFileOptions): Promise<import("./item.gql").CreateFileMutationResult>;
57
57
  createFileMutation(options: CreateFileOptions): Promise<LrMutation<import("./item.gql").CreateFileMutationResult, {
58
58
  input: {
59
- parentDirectories: FileParentDirectoryInput[];
59
+ parentDirectories: ParentDirectoryInput[];
60
60
  wrappedStateKey: string;
61
61
  contentResource: string;
62
62
  plainMeta: string;
@@ -14,17 +14,12 @@ export interface ParentRootDirectoryInput {
14
14
  wrappedKey: string;
15
15
  wrappingKeyId: LrRelayIdInput;
16
16
  }
17
- export interface ParentDirectoryInputBase {
17
+ export interface ParentDirectoryInput {
18
18
  directoryId: LrRelayIdInput;
19
- wrappingKeyId: LrRelayIdInput;
19
+ wrappingKeyId?: LrRelayIdInput;
20
+ wrappedKey?: string;
20
21
  linkType?: LinkTypeField;
21
22
  }
22
- export interface ParentDirectoryInput extends ParentDirectoryInputBase {
23
- wrappedKey: string;
24
- }
25
- export interface FileParentDirectoryInput extends ParentDirectoryInputBase {
26
- wrappedFileKey: string;
27
- }
28
23
  export interface DownloadFileContentOptions {
29
24
  fileStateNodeId: LrRelayIdInput;
30
25
  fileStateKeyId?: LrRelayIdInput;
@@ -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 { CompleteDetachedItemShareOptions, CreateItemShareOptions, ShareItemOptions, UnshareItemOptions, UpdateItemShareOptions } 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,44 +23,6 @@ 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
26
  createDirectoryShare(options: CreateItemShareOptions): Promise<import("./trusted-party.gql").CreateDirectoryShareMutationResult>;
65
27
  createDirectoryShareMutation(options: CreateItemShareOptions): Promise<LrMutation<import("./trusted-party.gql").CreateDirectoryShareMutationResult, {
66
28
  input: {
@@ -107,6 +69,12 @@ export declare class TrustedPartyService extends LrService {
107
69
  id: string;
108
70
  };
109
71
  }>>;
72
+ deleteFileShare(id: string): Promise<import("./trusted-party.gql").DeleteFileShareMutationResult>;
73
+ deleteFileShareMutation(id: string): Promise<LrMutation<import("./trusted-party.gql").DeleteFileShareMutationResult, {
74
+ input: {
75
+ id: string;
76
+ };
77
+ }>>;
110
78
  completeDetachedDirectoryShare(options: CompleteDetachedItemShareOptions): Promise<import("./trusted-party.gql").CompleteDetachedDirectoryShareMutationResult>;
111
79
  completeDetachedDirectoryShareMutation(options: CompleteDetachedItemShareOptions): Promise<LrMutation<import("./trusted-party.gql").CompleteDetachedDirectoryShareMutationResult, {
112
80
  input: {
@@ -1,15 +1,4 @@
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
2
  export interface CreateItemShareOptions {
14
3
  itemId: LrRelayIdInput;
15
4
  itemKeyId?: LrRelayIdInput;