@lifeready/core 5.0.12 → 6.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.
@@ -116,6 +116,7 @@ export interface DirectoryNode extends Node, TimeStamped, AccessControlledResour
116
116
  lockVersion?: string;
117
117
  tpShared?: Connection<TpSharedDirectoryNode>;
118
118
  nTpShared?: TpSharedDirectoryNodeLrNList;
119
+ reminder?: ReminderNode;
119
120
  }
120
121
  export interface FileNode extends Node, TimeStamped, AccessControlledResource {
121
122
  currentVersion?: FileVersionNode;
@@ -745,3 +746,11 @@ export interface PriceChangeField {
745
746
  periodStart?: DateTime;
746
747
  priceOption?: PriceOptionField;
747
748
  }
749
+ export interface ReminderNode extends Node, TimeStamped {
750
+ plain?: JSONString;
751
+ plainJson?: JSONObject;
752
+ firstEvent?: DateTime;
753
+ notifyAheadSeconds?: number;
754
+ notifyAt?: DateTime;
755
+ directory?: DirectoryNode;
756
+ }
@@ -76,7 +76,7 @@ export interface BeginDeleteChildItemLinksWindowOptions {
76
76
  }
77
77
  export interface CreateDirectoryTreeOptions extends Omit<SomeRequired<CreateDirectoryOptions, 'parentDirectories'>, 'asRootDirectory'> {
78
78
  requestWindowMs: number;
79
- createContent: (directory: IdKeyPair) => void | Promise<void>;
79
+ createContent: (directory: IdKeyPair) => Promise<void>;
80
80
  }
81
81
  export interface SetFileConfidentialOptions {
82
82
  fileId: LrRelayIdInput;
@@ -0,0 +1,23 @@
1
+ import { ID } from '../api/types';
2
+ export interface CreateReminderMutationResult {
3
+ createReminder: {
4
+ reminder: {
5
+ id: ID;
6
+ };
7
+ };
8
+ }
9
+ export declare const CreateReminderMutation: import("../_common/ast").TypedDocumentNode<CreateReminderMutationResult>;
10
+ export interface UpdateReminderMutationResult {
11
+ updateReminder: {
12
+ reminder: {
13
+ id: ID;
14
+ };
15
+ };
16
+ }
17
+ export declare const UpdateReminderMutation: import("../_common/ast").TypedDocumentNode<UpdateReminderMutationResult>;
18
+ export interface DeleteReminderMutationResult {
19
+ deleteReminder: {
20
+ id: ID;
21
+ };
22
+ }
23
+ export declare const DeleteReminderMutation: import("../_common/ast").TypedDocumentNode<DeleteReminderMutationResult>;
@@ -0,0 +1,33 @@
1
+ import { Injector, NgZone } from '@angular/core';
2
+ import { LrMutation, LrService } from '../api/lr-graphql';
3
+ import { LrRelayIdInput } from '../api/types';
4
+ import { CreateReminderOptions, UpdateReminderOptions } from './reminder.types';
5
+ export declare class ReminderService extends LrService {
6
+ private ngZone;
7
+ private injector;
8
+ constructor(ngZone: NgZone, injector: Injector);
9
+ createReminder(options: CreateReminderOptions): Promise<import("./reminder.gql").CreateReminderMutationResult>;
10
+ createReminderMutation(options: CreateReminderOptions): Promise<LrMutation<import("./reminder.gql").CreateReminderMutationResult, {
11
+ input: {
12
+ directoryId: string;
13
+ firstEvent: string;
14
+ plain: string;
15
+ notifyAheadSeconds: number;
16
+ };
17
+ }>>;
18
+ updateReminder(options: UpdateReminderOptions): Promise<import("./reminder.gql").UpdateReminderMutationResult>;
19
+ updateReminderMutation(options: UpdateReminderOptions): Promise<LrMutation<import("./reminder.gql").UpdateReminderMutationResult, {
20
+ input: {
21
+ id: string;
22
+ firstEvent: string;
23
+ plain: string;
24
+ notifyAheadSeconds: number;
25
+ };
26
+ }>>;
27
+ deleteReminder(id: LrRelayIdInput): Promise<import("./reminder.gql").DeleteReminderMutationResult>;
28
+ deleteReminderMutation(id: LrRelayIdInput): Promise<LrMutation<import("./reminder.gql").DeleteReminderMutationResult, {
29
+ input: {
30
+ id: string;
31
+ };
32
+ }>>;
33
+ }
@@ -0,0 +1,13 @@
1
+ import { JSONObject, LrRelayIdInput } from '../api/types';
2
+ export interface CreateReminderOptions {
3
+ directoryId: LrRelayIdInput;
4
+ firstEvent: Date;
5
+ plainJson?: JSONObject;
6
+ notifyAheadSeconds?: number;
7
+ }
8
+ export interface UpdateReminderOptions {
9
+ id: LrRelayIdInput;
10
+ firstEvent?: Date;
11
+ plainJson?: JSONObject;
12
+ notifyAheadSeconds?: number;
13
+ }