@lifeready/core 8.0.15 → 9.0.1

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.
@@ -9,4 +9,4 @@ export declare function mapValuesAsync(obj: Record<string, any>, callback?: (val
9
9
  */
10
10
  export declare function undefinedDefault(value: any, defaultValue: any): any;
11
11
  export declare function getAccessJwtToken(auth: AuthClass): Promise<string>;
12
- export declare function assert_xor(options: Record<string, unknown>): void;
12
+ export declare function assertExactlyOne(options: Record<string, unknown>): void;
@@ -1,5 +1,7 @@
1
+ import { IdKeyPair } from '../../item/item.types';
1
2
  import { Connection, DateTime, GenericScalar, ID, JSONObject, JSONString, LrEmail, Node, TimeStamped } from './graphql.types';
2
3
  export declare function mapEdges<T>(connection: Connection<T>): T[];
4
+ export declare function toIdKeyPair<T extends Partial<IdKeyPair>>(t: T): IdKeyPair;
3
5
  export interface LrNList<T> {
4
6
  list?: T[];
5
7
  }
@@ -1,10 +1,8 @@
1
1
  import { DateTime, ID } from '../api/types';
2
+ import { IdKeyPair } from './item.types';
2
3
  export interface CreateDirectoryMutationResult {
3
4
  createDirectory: {
4
- directory: {
5
- id: ID;
6
- keyId: ID;
7
- };
5
+ directory: IdKeyPair;
8
6
  };
9
7
  }
10
8
  export declare const CreateDirectoryMutation: import("../_common/ast").TypedDocumentNode<CreateDirectoryMutationResult>;
@@ -25,10 +23,7 @@ export interface DeleteDirectoryMutationResult {
25
23
  export declare const DeleteDirectoryMutation: import("../_common/ast").TypedDocumentNode<DeleteDirectoryMutationResult>;
26
24
  export interface CreateFileMutationResult {
27
25
  createFile: {
28
- file: {
29
- id: ID;
30
- keyId: ID;
31
- };
26
+ file: IdKeyPair;
32
27
  };
33
28
  }
34
29
  export declare const CreateFileMutation: import("../_common/ast").TypedDocumentNode<CreateFileMutationResult>;
@@ -88,17 +83,13 @@ export interface UnarchiveFileMutationResult {
88
83
  export declare const UnarchiveFileMutation: import("../_common/ast").TypedDocumentNode<UnarchiveFileMutationResult>;
89
84
  export interface ChangeDirectoryParentsMutationResult {
90
85
  changeDirectoryParents: {
91
- directory: {
92
- id: ID;
93
- };
86
+ directory: IdKeyPair;
94
87
  };
95
88
  }
96
89
  export declare const ChangeDirectoryParentsMutation: import("../_common/ast").TypedDocumentNode<ChangeDirectoryParentsMutationResult>;
97
90
  export interface ChangeFileParentsMutationResult {
98
91
  changeFileParents: {
99
- file: {
100
- id: ID;
101
- };
92
+ file: IdKeyPair;
102
93
  };
103
94
  }
104
95
  export declare const ChangeFileParentsMutation: import("../_common/ast").TypedDocumentNode<ChangeFileParentsMutationResult>;
@@ -117,10 +108,7 @@ export declare const BeginDeleteChildItemLinksWindowMutation: import("../_common
117
108
  export interface TempDirectoryQueryResult {
118
109
  rootDirectories: {
119
110
  edges: {
120
- node: {
121
- id: ID;
122
- keyId: ID;
123
- };
111
+ node: IdKeyPair;
124
112
  }[];
125
113
  };
126
114
  lock: {
@@ -4,11 +4,11 @@ export interface IdKeyPair {
4
4
  id: string;
5
5
  keyId: string;
6
6
  }
7
- export declare type IdKeyId = IdKeyPair;
8
7
  export interface ParentDirectoryOptions {
9
- directoryId: LrRelayIdInput;
10
- wrappingKeyId?: LrRelayIdInput;
8
+ directory?: IdKeyPair;
11
9
  linkType?: LinkTypeField;
10
+ directoryId?: LrRelayIdInput;
11
+ wrappingKeyId?: LrRelayIdInput;
12
12
  }
13
13
  export interface ParentRootDirectoryInput {
14
14
  wrappedKey: string;
@@ -58,11 +58,13 @@ export interface ChangeItemParentsOptions {
58
58
  parentsToAdd?: ParentDirectoryOptions[];
59
59
  }
60
60
  export interface ChangeDirectoryParentsOptions extends ChangeItemParentsOptions {
61
- directoryId: LrRelayIdInput;
61
+ directory?: IdKeyPair;
62
+ directoryId?: LrRelayIdInput;
62
63
  directoryKeyId?: LrRelayIdInput;
63
64
  }
64
65
  export interface ChangeFileParentsOptions extends ChangeItemParentsOptions {
65
- fileId: LrRelayIdInput;
66
+ file?: IdKeyPair;
67
+ fileId?: LrRelayIdInput;
66
68
  fileKeyId?: LrRelayIdInput;
67
69
  }
68
70
  export interface BeginDeleteChildItemLinksWindowOptions {
@@ -1,10 +1,12 @@
1
1
  import { AccessRoleChoice, JSONObject, LrRelayIdInput, ShareTypeChoice } from '../api/types';
2
+ import { IdKeyPair } from '../item/item.types';
2
3
  export interface CreateItemShareOptions {
3
- itemId: LrRelayIdInput;
4
4
  tpId: LrRelayIdInput;
5
5
  accessRole: AccessRoleChoice;
6
6
  shareType: ShareTypeChoice;
7
7
  plainMetaJson?: JSONObject;
8
+ item?: IdKeyPair;
9
+ itemId?: LrRelayIdInput;
8
10
  itemKeyId?: LrRelayIdInput;
9
11
  tpSharedKeyId?: LrRelayIdInput;
10
12
  }
@@ -12,6 +14,7 @@ export interface UpdateItemShareOptions {
12
14
  itemShareId: LrRelayIdInput;
13
15
  accessRole?: AccessRoleChoice;
14
16
  plainMetaJson?: JSONObject;
17
+ item?: IdKeyPair;
15
18
  itemId?: LrRelayIdInput;
16
19
  itemKeyId?: LrRelayIdInput;
17
20
  tpId?: LrRelayIdInput;