@lifeready/core 1.1.6 → 1.1.8

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.
@@ -10,6 +10,7 @@ import { LrMutationBase } from './lr-mutation-base';
10
10
  export interface LrQueryOptions<T, TVariables> extends QueryOptions<TVariables> {
11
11
  query: TypedDocumentNode<T>;
12
12
  includeKeyGraph?: boolean;
13
+ name?: string;
13
14
  processorOptions?: ProcessorOptions;
14
15
  }
15
16
  export interface LrMutationOptions<T = {
@@ -18,10 +19,12 @@ export interface LrMutationOptions<T = {
18
19
  context?: any;
19
20
  fetchPolicy?: FetchPolicy;
20
21
  includeKeyGraph?: boolean;
22
+ name?: string;
21
23
  }
22
24
  export interface LrApolloMutationOptions<T, TVariables = OperationVariables> extends MutationOptions<T, TVariables> {
23
25
  mutation: TypedDocumentNode<T>;
24
26
  includeKeyGraph?: boolean;
27
+ name?: string;
25
28
  processorOptions?: ProcessorOptions;
26
29
  }
27
30
  interface LrGraphQLServiceStats {
@@ -3,5 +3,46 @@ import { TypedDocumentNode } from '../../_common/ast';
3
3
  import { LrMutationBase, LrMutationData } from './lr-mutation-base';
4
4
  export declare class LrMutation<T extends any, TVariables = OperationVariables> extends LrMutationBase<T, TVariables> {
5
5
  constructor(options: LrMutationData<T, TVariables>);
6
+ /**
7
+ * Select a different set of fields from the mutation. Example usage:
8
+ *
9
+ * interface CreateDirectoryMutationResult {
10
+ * createDirectory: {
11
+ * directory: DirectoryNode;
12
+ * };
13
+ * };
14
+ *
15
+ * const CreateDirectoryMutation = gqlTyped<CreateDirectoryMutationResult>`
16
+ * mutation CreateDirectoryMutation(...) {
17
+ * createDirectory(...) {
18
+ * directory {
19
+ * id
20
+ * }
21
+ * }
22
+ * }
23
+ * `
24
+ * interface CreateDirectoryFragmentResult {
25
+ * createDirectory: {
26
+ * directory: DirectoryNode;
27
+ * };
28
+ * };
29
+ *
30
+ * const CreateDirectoryFragment = gqlTyped<CreateDirectoryFragmentResult>`
31
+ * // Note that the string 'createDirectory' can not be changed.
32
+ * // It must match with the mutation field above.
33
+ * // The 'CreateDirectoryPayload' is the return type of the mutation.
34
+ * fragment createDirectory on CreateDirectoryPayload {
35
+ * directory {
36
+ * plainMeta
37
+ * }
38
+ * }
39
+ * `
40
+ * lrGraphQLService.lrMutate({
41
+ * mutation: CreateDirectoryMutation
42
+ * }).select(CreateDirectoryFragment).createDirectory.directory.plainMeta.
43
+ *
44
+ * @param fragments
45
+ * @returns
46
+ */
6
47
  select<TResult>(fragments: TypedDocumentNode<TResult>): LrMutation<TResult, TVariables>;
7
48
  }
@@ -601,3 +601,10 @@ export interface MessageNode extends Node, TimeStamped {
601
601
  signedCipherMessage?: string;
602
602
  signedCipherMessageClearJson?: string;
603
603
  }
604
+ export interface LockField {
605
+ created?: DateTime;
606
+ modified?: DateTime;
607
+ expiryTime?: DateTime;
608
+ version?: string;
609
+ state?: LockState;
610
+ }
@@ -167,6 +167,16 @@ export declare class Item2Service extends LrService {
167
167
  };
168
168
  }>>;
169
169
  beginDeleteChildItemLinksWindow(options: BeginDeleteChildItemLinksWindowOptions): Promise<import("./item2.gql").BeginDeleteChildItemLinksWindowMutationResult>;
170
+ /**
171
+ * Schedule cleanup of the hard links in a directory.
172
+ * The server will delete all hard link within the directory within a time window: starting from now and
173
+ * ending at requestWindowMs after now.
174
+ * The server decides _when_ it will perform the delete. It's not guaranteed that it will perform
175
+ * the delete at "now + requestWindowMs", but it will happen at some time after "now + requestWindowMs".
176
+ * This allows multiple overlapping calls to this function and the server allocates enough for each request.
177
+ * The server has a setting that allows for a maximum value on requestWindowMs. If the requested value
178
+ * is larger than this maximum, the call will fail.
179
+ */
170
180
  beginDeleteChildItemLinksWindowMutation(options: BeginDeleteChildItemLinksWindowOptions): Promise<LrMutation<import("./item2.gql").BeginDeleteChildItemLinksWindowMutationResult, {
171
181
  input: BeginDeleteChildItemLinksWindowOptions;
172
182
  }>>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lifeready/core",
3
- "version": "1.1.6",
3
+ "version": "1.1.8",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "~10.0.5",
6
6
  "@angular/core": "~10.0.5",