@lifeready/core 9.0.7 → 10.0.0
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.
- package/fesm2022/lifeready-core.mjs +10522 -0
- package/fesm2022/lifeready-core.mjs.map +1 -0
- package/package.json +21 -16
- package/types/lifeready-core.d.ts +5329 -0
- package/bundles/lifeready-core.umd.js +0 -13231
- package/bundles/lifeready-core.umd.js.map +0 -1
- package/bundles/lifeready-core.umd.min.js +0 -2
- package/bundles/lifeready-core.umd.min.js.map +0 -1
- package/esm2015/lib/_common/ast.js +0 -41
- package/esm2015/lib/_common/deferred-promise.js +0 -24
- package/esm2015/lib/_common/exceptions.js +0 -186
- package/esm2015/lib/_common/index.js +0 -3
- package/esm2015/lib/_common/kc-lodash.js +0 -11
- package/esm2015/lib/_common/key.js +0 -28
- package/esm2015/lib/_common/queries.gql.js +0 -43
- package/esm2015/lib/_common/run-outside-angular.js +0 -80
- package/esm2015/lib/_common/storage.js +0 -28
- package/esm2015/lib/_common/types.js +0 -2
- package/esm2015/lib/_common/utils.js +0 -73
- package/esm2015/lib/api/lr-apollo.service.js +0 -47
- package/esm2015/lib/api/lr-graphql/index.js +0 -6
- package/esm2015/lib/api/lr-graphql/lr-graphql.service.js +0 -170
- package/esm2015/lib/api/lr-graphql/lr-merged-mutation.js +0 -216
- package/esm2015/lib/api/lr-graphql/lr-mutation-base.js +0 -51
- package/esm2015/lib/api/lr-graphql/lr-mutation.js +0 -91
- package/esm2015/lib/api/lr-graphql/lr.service.js +0 -18
- package/esm2015/lib/api/query-processor/common-processors.service.js +0 -94
- package/esm2015/lib/api/query-processor/index.js +0 -3
- package/esm2015/lib/api/query-processor/query-processor.service.js +0 -307
- package/esm2015/lib/api/query-processor/tp-password-reset-processor.service.js +0 -110
- package/esm2015/lib/api/types/graphql.types.js +0 -8
- package/esm2015/lib/api/types/index.js +0 -3
- package/esm2015/lib/api/types/lr-graphql.types.js +0 -182
- package/esm2015/lib/auth/auth.config.js +0 -57
- package/esm2015/lib/auth/auth.gql.private.js +0 -85
- package/esm2015/lib/auth/auth.service.js +0 -616
- package/esm2015/lib/auth/auth.types.js +0 -19
- package/esm2015/lib/contact-card/contact-card.gql.js +0 -79
- package/esm2015/lib/contact-card/contact-card.service.js +0 -156
- package/esm2015/lib/contact-card/contact-card2.gql.js +0 -29
- package/esm2015/lib/contact-card/contact-card2.service.js +0 -103
- package/esm2015/lib/encryption/encryption.service.js +0 -188
- package/esm2015/lib/file-upload/file-upload.service.js +0 -70
- package/esm2015/lib/file-upload/file-upload.types.js +0 -2
- package/esm2015/lib/idle/idle.service.js +0 -159
- package/esm2015/lib/idle/idle.types.js +0 -7
- package/esm2015/lib/item/item.gql.js +0 -166
- package/esm2015/lib/item/item.gql.private.js +0 -41
- package/esm2015/lib/item/item.service.js +0 -662
- package/esm2015/lib/item/item.types.js +0 -2
- package/esm2015/lib/key/key-factory.service.js +0 -226
- package/esm2015/lib/key/key-graph.service.js +0 -314
- package/esm2015/lib/key/key-meta.service.js +0 -153
- package/esm2015/lib/key/key.service.js +0 -124
- package/esm2015/lib/key/key.types.js +0 -16
- package/esm2015/lib/key-exchange/key-exchange.gql.js +0 -174
- package/esm2015/lib/key-exchange/key-exchange.service.js +0 -496
- package/esm2015/lib/lbop/lbop.service.js +0 -351
- package/esm2015/lib/life-ready.config.js +0 -96
- package/esm2015/lib/life-ready.module.js +0 -42
- package/esm2015/lib/lock/lock.gql.js +0 -40
- package/esm2015/lib/lock/lock.service.js +0 -64
- package/esm2015/lib/notification/notification.gql.js +0 -43
- package/esm2015/lib/notification/notification.service.js +0 -118
- package/esm2015/lib/password/password.gql.js +0 -28
- package/esm2015/lib/password/password.service.js +0 -309
- package/esm2015/lib/persist/persist.service.js +0 -181
- package/esm2015/lib/plan/plan.gql.js +0 -91
- package/esm2015/lib/plan/plan.service.js +0 -191
- package/esm2015/lib/plan/plan.types.js +0 -2
- package/esm2015/lib/profile/profile-details.service.js +0 -261
- package/esm2015/lib/profile/profile.gql.js +0 -170
- package/esm2015/lib/profile/profile.service.js +0 -166
- package/esm2015/lib/profile/profile.types.js +0 -45
- package/esm2015/lib/register/register.service.js +0 -173
- package/esm2015/lib/register/register.types.js +0 -3
- package/esm2015/lib/reminder/reminder.gql.js +0 -27
- package/esm2015/lib/reminder/reminder.service.js +0 -85
- package/esm2015/lib/reminder/reminder.types.js +0 -2
- package/esm2015/lib/scenario/scenario.constants.js +0 -2
- package/esm2015/lib/scenario/scenario.controller.js +0 -34
- package/esm2015/lib/scenario/scenario.gql.js +0 -90
- package/esm2015/lib/scenario/scenario.private.gql.js +0 -200
- package/esm2015/lib/scenario/scenario.service.js +0 -679
- package/esm2015/lib/scenario/scenario.types.js +0 -2
- package/esm2015/lib/server-config/server-config.gql.js +0 -9
- package/esm2015/lib/server-config/server-config.service.js +0 -41
- package/esm2015/lib/shared-contact-card/shared-contact-card.service.js +0 -119
- package/esm2015/lib/shared-contact-card/shared-contact-card2.gql.js +0 -41
- package/esm2015/lib/shared-contact-card/shared-contact-card2.service.js +0 -117
- package/esm2015/lib/slip39/slip39.service.js +0 -167
- package/esm2015/lib/time/time.service.js +0 -152
- package/esm2015/lib/tp-assembly/tp-assembly.js +0 -363
- package/esm2015/lib/tp-assembly/tp-assembly.private.gql.js +0 -22
- package/esm2015/lib/tp-assembly/tp-assembly.types.js +0 -2
- package/esm2015/lib/tp-password-reset/tp-password-reset-request.service.js +0 -98
- package/esm2015/lib/tp-password-reset/tp-password-reset-user.service.js +0 -121
- package/esm2015/lib/tp-password-reset/tp-password-reset.constants.js +0 -4
- package/esm2015/lib/tp-password-reset/tp-password-reset.controller.js +0 -34
- package/esm2015/lib/tp-password-reset/tp-password-reset.gql.js +0 -74
- package/esm2015/lib/tp-password-reset/tp-password-reset.private.gql.js +0 -166
- package/esm2015/lib/tp-password-reset/tp-password-reset.private.service.js +0 -54
- package/esm2015/lib/tp-password-reset/tp-password-reset.service.js +0 -110
- package/esm2015/lib/tp-password-reset/tp-password-reset.types.js +0 -2
- package/esm2015/lib/trusted-party/trusted-party.gql.js +0 -96
- package/esm2015/lib/trusted-party/trusted-party.gql.private.js +0 -51
- package/esm2015/lib/trusted-party/trusted-party.service.js +0 -461
- package/esm2015/lib/trusted-party/trusted-party.types.js +0 -2
- package/esm2015/lib/two-factor/two-factor.service.js +0 -74
- package/esm2015/lib/user/user.gql.js +0 -32
- package/esm2015/lib/user/user.service.js +0 -58
- package/esm2015/lib/user/user.types.js +0 -2
- package/esm2015/lib/web-crypto/web-crypto.service.js +0 -29
- package/esm2015/lifeready-core.js +0 -17
- package/esm2015/public-api.js +0 -60
- package/fesm2015/lifeready-core.js +0 -10970
- package/fesm2015/lifeready-core.js.map +0 -1
- package/lib/_common/ast.d.ts +0 -11
- package/lib/_common/deferred-promise.d.ts +0 -12
- package/lib/_common/exceptions.d.ts +0 -126
- package/lib/_common/index.d.ts +0 -2
- package/lib/_common/kc-lodash.d.ts +0 -5
- package/lib/_common/key.d.ts +0 -14
- package/lib/_common/queries.gql.d.ts +0 -4
- package/lib/_common/run-outside-angular.d.ts +0 -14
- package/lib/_common/storage.d.ts +0 -13
- package/lib/_common/types.d.ts +0 -15
- package/lib/_common/utils.d.ts +0 -12
- package/lib/api/lr-apollo.service.d.ts +0 -15
- package/lib/api/lr-graphql/index.d.ts +0 -5
- package/lib/api/lr-graphql/lr-graphql.service.d.ts +0 -81
- package/lib/api/lr-graphql/lr-merged-mutation.d.ts +0 -46
- package/lib/api/lr-graphql/lr-mutation-base.d.ts +0 -28
- package/lib/api/lr-graphql/lr-mutation.d.ts +0 -48
- package/lib/api/lr-graphql/lr.service.d.ts +0 -9
- package/lib/api/query-processor/common-processors.service.d.ts +0 -36
- package/lib/api/query-processor/index.d.ts +0 -2
- package/lib/api/query-processor/query-processor.service.d.ts +0 -18
- package/lib/api/query-processor/tp-password-reset-processor.service.d.ts +0 -15
- package/lib/api/types/graphql.types.d.ts +0 -30
- package/lib/api/types/index.d.ts +0 -2
- package/lib/api/types/lr-graphql.types.d.ts +0 -807
- package/lib/auth/auth.config.d.ts +0 -5
- package/lib/auth/auth.gql.private.d.ts +0 -25
- package/lib/auth/auth.service.d.ts +0 -72
- package/lib/auth/auth.types.d.ts +0 -70
- package/lib/contact-card/contact-card.gql.d.ts +0 -7
- package/lib/contact-card/contact-card.service.d.ts +0 -53
- package/lib/contact-card/contact-card2.gql.d.ts +0 -25
- package/lib/contact-card/contact-card2.service.d.ts +0 -64
- package/lib/encryption/encryption.service.d.ts +0 -42
- package/lib/file-upload/file-upload.service.d.ts +0 -15
- package/lib/file-upload/file-upload.types.d.ts +0 -5
- package/lib/idle/idle.service.d.ts +0 -47
- package/lib/idle/idle.types.d.ts +0 -10
- package/lib/item/item.gql.d.ts +0 -134
- package/lib/item/item.gql.private.d.ts +0 -35
- package/lib/item/item.service.d.ts +0 -201
- package/lib/item/item.types.d.ts +0 -95
- package/lib/key/key-factory.service.d.ts +0 -40
- package/lib/key/key-graph.service.d.ts +0 -41
- package/lib/key/key-meta.service.d.ts +0 -51
- package/lib/key/key.service.d.ts +0 -36
- package/lib/key/key.types.d.ts +0 -86
- package/lib/key-exchange/key-exchange.gql.d.ts +0 -141
- package/lib/key-exchange/key-exchange.service.d.ts +0 -179
- package/lib/lbop/lbop.service.d.ts +0 -99
- package/lib/life-ready.config.d.ts +0 -26
- package/lib/life-ready.module.d.ts +0 -5
- package/lib/lock/lock.gql.d.ts +0 -27
- package/lib/lock/lock.service.d.ts +0 -34
- package/lib/notification/notification.gql.d.ts +0 -37
- package/lib/notification/notification.service.d.ts +0 -64
- package/lib/password/password.gql.d.ts +0 -3
- package/lib/password/password.service.d.ts +0 -79
- package/lib/persist/persist.service.d.ts +0 -31
- package/lib/plan/plan.gql.d.ts +0 -69
- package/lib/plan/plan.service.d.ts +0 -111
- package/lib/plan/plan.types.d.ts +0 -16
- package/lib/profile/profile-details.service.d.ts +0 -20
- package/lib/profile/profile.gql.d.ts +0 -21
- package/lib/profile/profile.service.d.ts +0 -32
- package/lib/profile/profile.types.d.ts +0 -121
- package/lib/register/register.service.d.ts +0 -25
- package/lib/register/register.types.d.ts +0 -6
- package/lib/reminder/reminder.gql.d.ts +0 -23
- package/lib/reminder/reminder.service.d.ts +0 -33
- package/lib/reminder/reminder.types.d.ts +0 -17
- package/lib/scenario/scenario.constants.d.ts +0 -1
- package/lib/scenario/scenario.controller.d.ts +0 -10
- package/lib/scenario/scenario.gql.d.ts +0 -78
- package/lib/scenario/scenario.private.gql.d.ts +0 -16
- package/lib/scenario/scenario.service.d.ts +0 -655
- package/lib/scenario/scenario.types.d.ts +0 -64
- package/lib/server-config/server-config.gql.d.ts +0 -5
- package/lib/server-config/server-config.service.d.ts +0 -9
- package/lib/shared-contact-card/shared-contact-card.service.d.ts +0 -33
- package/lib/shared-contact-card/shared-contact-card2.gql.d.ts +0 -36
- package/lib/shared-contact-card/shared-contact-card2.service.d.ts +0 -45
- package/lib/slip39/slip39.service.d.ts +0 -42
- package/lib/time/time.service.d.ts +0 -26
- package/lib/tp-assembly/tp-assembly.d.ts +0 -177
- package/lib/tp-assembly/tp-assembly.private.gql.d.ts +0 -5
- package/lib/tp-assembly/tp-assembly.types.d.ts +0 -40
- package/lib/tp-password-reset/tp-password-reset-request.service.d.ts +0 -16
- package/lib/tp-password-reset/tp-password-reset-user.service.d.ts +0 -29
- package/lib/tp-password-reset/tp-password-reset.constants.d.ts +0 -3
- package/lib/tp-password-reset/tp-password-reset.controller.d.ts +0 -10
- package/lib/tp-password-reset/tp-password-reset.gql.d.ts +0 -63
- package/lib/tp-password-reset/tp-password-reset.private.gql.d.ts +0 -163
- package/lib/tp-password-reset/tp-password-reset.private.service.d.ts +0 -59
- package/lib/tp-password-reset/tp-password-reset.service.d.ts +0 -112
- package/lib/tp-password-reset/tp-password-reset.types.d.ts +0 -40
- package/lib/trusted-party/trusted-party.gql.d.ts +0 -85
- package/lib/trusted-party/trusted-party.gql.private.d.ts +0 -40
- package/lib/trusted-party/trusted-party.service.d.ts +0 -192
- package/lib/trusted-party/trusted-party.types.d.ts +0 -31
- package/lib/two-factor/two-factor.service.d.ts +0 -15
- package/lib/user/user.gql.d.ts +0 -8
- package/lib/user/user.service.d.ts +0 -9
- package/lib/user/user.types.d.ts +0 -16
- package/lib/web-crypto/web-crypto.service.d.ts +0 -5
- package/lifeready-core.d.ts +0 -16
- package/lifeready-core.metadata.json +0 -1
- package/public-api.d.ts +0 -56
|
@@ -1,79 +0,0 @@
|
|
|
1
|
-
import { HttpClient } from '@angular/common/http';
|
|
2
|
-
import { AuthClass } from '@aws-amplify/auth/lib-esm/Auth';
|
|
3
|
-
import { Duration } from 'moment';
|
|
4
|
-
import { JWK } from 'node-jose';
|
|
5
|
-
import { PassKeyBundle } from '../auth/auth.types';
|
|
6
|
-
import { EncryptionService } from '../encryption/encryption.service';
|
|
7
|
-
import { KeyFactoryService as KFS } from '../key/key-factory.service';
|
|
8
|
-
import { KeyGraphService } from '../key/key-graph.service';
|
|
9
|
-
import { KcConfig } from '../life-ready.config';
|
|
10
|
-
import { ProfileService } from '../profile/profile.service';
|
|
11
|
-
import { WebCryptoService } from '../web-crypto/web-crypto.service';
|
|
12
|
-
import { LrApolloService } from './../api/lr-apollo.service';
|
|
13
|
-
export interface PasswordChangeConfig {
|
|
14
|
-
maxAuthAgeSeconds: number;
|
|
15
|
-
authTime: string | Date;
|
|
16
|
-
serverTime: string | Date;
|
|
17
|
-
}
|
|
18
|
-
export declare class PasswordCheck {
|
|
19
|
-
length?: number;
|
|
20
|
-
timeToCrack?: Duration;
|
|
21
|
-
passwordExposed?: number;
|
|
22
|
-
}
|
|
23
|
-
export declare class PasswordService {
|
|
24
|
-
private config;
|
|
25
|
-
private http;
|
|
26
|
-
private apollo;
|
|
27
|
-
private auth;
|
|
28
|
-
private profileService;
|
|
29
|
-
private keyFactory;
|
|
30
|
-
private encryptionService;
|
|
31
|
-
private keyGraph;
|
|
32
|
-
private webCryptoService;
|
|
33
|
-
private readonly CLIENT_NONCE_LENGTH;
|
|
34
|
-
constructor(config: KcConfig, http: HttpClient, apollo: LrApolloService, auth: AuthClass, profileService: ProfileService, keyFactory: KFS, encryptionService: EncryptionService, keyGraph: KeyGraphService, webCryptoService: WebCryptoService);
|
|
35
|
-
checkPassword(plainPassword: string): Promise<PasswordCheck>;
|
|
36
|
-
getExposureCount(plainPassword: string): Promise<number>;
|
|
37
|
-
getPassIdpString(passIdp: JWK.Key): any;
|
|
38
|
-
createPassKeyBundle(password: CryptoKey): Promise<PassKeyBundle>;
|
|
39
|
-
/**
|
|
40
|
-
* We need to allow for interruption of the process at any point. Each API call can be considered
|
|
41
|
-
* atomic and either succeeds or fails.
|
|
42
|
-
*
|
|
43
|
-
* The LR server APIs use semaphore tokens for locking critical operations, so concurrent calls will
|
|
44
|
-
* fail.
|
|
45
|
-
*
|
|
46
|
-
* We assume the worst case for IdP API calls. So we use the semaphore token from LR to prevent
|
|
47
|
-
* concurrent calls to IdP APIs, but we have to assume that the IdP API calls will either succeed or
|
|
48
|
-
* fail within a reasonable amount of time.
|
|
49
|
-
*
|
|
50
|
-
* Each location where the server state changes can be a potential point of interruption.
|
|
51
|
-
* Potential points of interruption are marked with: --Potential Failure Point--
|
|
52
|
-
*
|
|
53
|
-
* Places for timeout:
|
|
54
|
-
* - Login age too old at call to: verifyPassword()
|
|
55
|
-
* - Login age too old at call to: changePasswordMutation()
|
|
56
|
-
* - Semaphore token expires at call to: changePasswordComplete()
|
|
57
|
-
*
|
|
58
|
-
* Tests:
|
|
59
|
-
* - Potential Failure Point 1: should be able to restart the process, user remains signed in.
|
|
60
|
-
* - Potential Failure Point 2: should enter recovery flow
|
|
61
|
-
* - Potential Failure Point 3: should enter recovery flow
|
|
62
|
-
* - Potential Failure Point 4: should enter recovery flow
|
|
63
|
-
*
|
|
64
|
-
*/
|
|
65
|
-
isLoginRequired(): Promise<boolean>;
|
|
66
|
-
changePassword(password: CryptoKey, newPassword: CryptoKey): Promise<void>;
|
|
67
|
-
changePasswordComplete(options: {
|
|
68
|
-
useNewPassword: boolean;
|
|
69
|
-
token?: string;
|
|
70
|
-
}): Promise<Object>;
|
|
71
|
-
private getVerifierPrK;
|
|
72
|
-
private verifyPassword;
|
|
73
|
-
private changePasswordMutation;
|
|
74
|
-
getChangePasswordConfig(): Promise<PasswordChangeConfig>;
|
|
75
|
-
passwordStrength(password: any): {
|
|
76
|
-
years: number;
|
|
77
|
-
bits: number;
|
|
78
|
-
};
|
|
79
|
-
}
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import { Injector } from '@angular/core';
|
|
2
|
-
import { CookieService } from 'ngx-cookie-service';
|
|
3
|
-
import { JWK } from 'node-jose';
|
|
4
|
-
import { EncryptionService } from '../encryption/encryption.service';
|
|
5
|
-
import { KeyFactoryService as KFS } from '../key/key-factory.service';
|
|
6
|
-
export declare class PersistService {
|
|
7
|
-
private keyFactory;
|
|
8
|
-
private cookieService;
|
|
9
|
-
private encryptionService;
|
|
10
|
-
private injector;
|
|
11
|
-
private readonly KEY_PREFIX;
|
|
12
|
-
private cookieSecure;
|
|
13
|
-
private serverSessionEncryptionKey;
|
|
14
|
-
constructor(keyFactory: KFS, cookieService: CookieService, encryptionService: EncryptionService, injector: Injector);
|
|
15
|
-
setServerSessionEncryptionKey(key: JWK.Key): void;
|
|
16
|
-
clearServerSessionEncryptionKey(): void;
|
|
17
|
-
private getCookieParams;
|
|
18
|
-
clear(): void;
|
|
19
|
-
setCookieSecure(value: boolean): void;
|
|
20
|
-
private prefixName;
|
|
21
|
-
delete(name: string): void;
|
|
22
|
-
private deletePrefixedName;
|
|
23
|
-
set({ name, value, serverSession, expiry, }: {
|
|
24
|
-
name: string;
|
|
25
|
-
value: any;
|
|
26
|
-
serverSession: boolean;
|
|
27
|
-
expiry?: Date;
|
|
28
|
-
}): Promise<void>;
|
|
29
|
-
get(name: string): Promise<any>;
|
|
30
|
-
private getImpl;
|
|
31
|
-
}
|
package/lib/plan/plan.gql.d.ts
DELETED
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
import { ID, PaymentCaptureField, PaymentCardField, PaymentMethodNode } from '../api/types';
|
|
2
|
-
export interface InitiateStripePaymentMethodCaptureMutationResult {
|
|
3
|
-
initiateStripePaymentMethodCapture: {
|
|
4
|
-
paymentCapture: Required<PaymentCaptureField>;
|
|
5
|
-
};
|
|
6
|
-
}
|
|
7
|
-
export declare const InitiateStripePaymentMethodCaptureMutation: import("../_common/ast").TypedDocumentNode<InitiateStripePaymentMethodCaptureMutationResult>;
|
|
8
|
-
export interface CompleteStripePaymentMethodCaptureMutationResult {
|
|
9
|
-
completeStripePaymentMethodCapture: {
|
|
10
|
-
paymentMethod: Required<Omit<PaymentMethodNode, 'invoice'>> & {
|
|
11
|
-
card: Required<PaymentCardField>;
|
|
12
|
-
};
|
|
13
|
-
};
|
|
14
|
-
}
|
|
15
|
-
export declare const CompleteStripePaymentMethodCaptureMutation: import("../_common/ast").TypedDocumentNode<CompleteStripePaymentMethodCaptureMutationResult>;
|
|
16
|
-
export interface RemovePaymentMethodMutationResult {
|
|
17
|
-
removePaymentMethod: {
|
|
18
|
-
id: ID;
|
|
19
|
-
};
|
|
20
|
-
}
|
|
21
|
-
export declare const RemovePaymentMethodMutation: import("../_common/ast").TypedDocumentNode<RemovePaymentMethodMutationResult>;
|
|
22
|
-
export interface SetDefaultPaymentMethodMutationResult {
|
|
23
|
-
setDefaultPaymentMethod: {
|
|
24
|
-
paymentMethod: {
|
|
25
|
-
id: ID;
|
|
26
|
-
};
|
|
27
|
-
};
|
|
28
|
-
}
|
|
29
|
-
export declare const SetDefaultPaymentMethodMutation: import("../_common/ast").TypedDocumentNode<SetDefaultPaymentMethodMutationResult>;
|
|
30
|
-
export interface RemoveDefaultPaymentMethodMutationResult {
|
|
31
|
-
removeDefaultPaymentMethod: {
|
|
32
|
-
paymentMethod: {
|
|
33
|
-
id: ID;
|
|
34
|
-
};
|
|
35
|
-
};
|
|
36
|
-
}
|
|
37
|
-
export declare const RemoveDefaultPaymentMethodMutation: import("../_common/ast").TypedDocumentNode<RemoveDefaultPaymentMethodMutationResult>;
|
|
38
|
-
export interface IssuePlanMutationResult {
|
|
39
|
-
issuePlan: {
|
|
40
|
-
plan: {
|
|
41
|
-
id: ID;
|
|
42
|
-
};
|
|
43
|
-
};
|
|
44
|
-
}
|
|
45
|
-
export declare const IssuePlanMutation: import("../_common/ast").TypedDocumentNode<IssuePlanMutationResult>;
|
|
46
|
-
export interface CancelPlanMutationResult {
|
|
47
|
-
cancelPlan: {
|
|
48
|
-
plan: {
|
|
49
|
-
id: ID;
|
|
50
|
-
};
|
|
51
|
-
};
|
|
52
|
-
}
|
|
53
|
-
export declare const CancelPlanMutation: import("../_common/ast").TypedDocumentNode<CancelPlanMutationResult>;
|
|
54
|
-
export interface ChangePriceOptionMutationResult {
|
|
55
|
-
changePriceOption: {
|
|
56
|
-
plan: {
|
|
57
|
-
id: ID;
|
|
58
|
-
};
|
|
59
|
-
};
|
|
60
|
-
}
|
|
61
|
-
export declare const ChangePriceOptionMutation: import("../_common/ast").TypedDocumentNode<ChangePriceOptionMutationResult>;
|
|
62
|
-
export interface ReactivatePlanMutationResult {
|
|
63
|
-
reactivatePlan: {
|
|
64
|
-
plan: {
|
|
65
|
-
id: ID;
|
|
66
|
-
};
|
|
67
|
-
};
|
|
68
|
-
}
|
|
69
|
-
export declare const ReactivatePlanMutation: import("../_common/ast").TypedDocumentNode<ReactivatePlanMutationResult>;
|
|
@@ -1,111 +0,0 @@
|
|
|
1
|
-
import { Injector, NgZone } from '@angular/core';
|
|
2
|
-
import { LrMutation, LrService } from '../api/lr-graphql';
|
|
3
|
-
import { LrRelayIdInput } from '../api/types';
|
|
4
|
-
import { CancelPlanOptions, ChangePriceOptionOptions, IssuePlanOptions } from './plan.types';
|
|
5
|
-
export declare class PlanService extends LrService {
|
|
6
|
-
private ngZone;
|
|
7
|
-
private injector;
|
|
8
|
-
constructor(ngZone: NgZone, injector: Injector);
|
|
9
|
-
initiateStripePaymentMethodCapture(): Promise<import("./plan.gql").InitiateStripePaymentMethodCaptureMutationResult>;
|
|
10
|
-
/**
|
|
11
|
-
* Starts a stripe payment capture intent. On intent can only add one card.
|
|
12
|
-
* @returns Promise that resolves to a mutation
|
|
13
|
-
*/
|
|
14
|
-
initiateStripePaymentMethodCaptureMutation(): LrMutation<import("./plan.gql").InitiateStripePaymentMethodCaptureMutationResult, {
|
|
15
|
-
input: {};
|
|
16
|
-
}>;
|
|
17
|
-
completeStripePaymentMethodCapture(stripeIntentId: string): Promise<import("./plan.gql").CompleteStripePaymentMethodCaptureMutationResult>;
|
|
18
|
-
/**
|
|
19
|
-
* Completes the payment capture intent. Call this after calling stripe.confirmCardSetup.
|
|
20
|
-
*
|
|
21
|
-
* The return result of this mutation can be used to update the UI. Because this is a mutation
|
|
22
|
-
* we always get the most up to date data from the BD.
|
|
23
|
-
*
|
|
24
|
-
* @returns Promise that resolves to a mutation with the just created PaymentMethodNode
|
|
25
|
-
*/
|
|
26
|
-
completeStripePaymentMethodCaptureMutation(stripeIntentId: string): LrMutation<import("./plan.gql").CompleteStripePaymentMethodCaptureMutationResult, {
|
|
27
|
-
input: {
|
|
28
|
-
stripeIntentId: string;
|
|
29
|
-
};
|
|
30
|
-
}>;
|
|
31
|
-
setDefaultPaymentMethod(paymentMethodId: LrRelayIdInput): Promise<import("./plan.gql").SetDefaultPaymentMethodMutationResult>;
|
|
32
|
-
/**
|
|
33
|
-
* Mutation that sets the default payment method for the current user.
|
|
34
|
-
*
|
|
35
|
-
* @param paymentMethodId The id from PaymentMethodNode
|
|
36
|
-
* @returns Promise that resolves to a mutation
|
|
37
|
-
*/
|
|
38
|
-
setDefaultPaymentMethodMutation(paymentMethodId: LrRelayIdInput): LrMutation<import("./plan.gql").SetDefaultPaymentMethodMutationResult, {
|
|
39
|
-
input: {
|
|
40
|
-
paymentMethodId: string;
|
|
41
|
-
};
|
|
42
|
-
}>;
|
|
43
|
-
removeDefaultPaymentMethod(): Promise<import("./plan.gql").RemoveDefaultPaymentMethodMutationResult>;
|
|
44
|
-
/**
|
|
45
|
-
* Mutation that removes a the default payment method
|
|
46
|
-
*
|
|
47
|
-
* @returns Promise that resolves to a mutation
|
|
48
|
-
*/
|
|
49
|
-
removeDefaultPaymentMethodMutation(): LrMutation<import("./plan.gql").RemoveDefaultPaymentMethodMutationResult, {
|
|
50
|
-
input: {};
|
|
51
|
-
}>;
|
|
52
|
-
issuePlan(options: IssuePlanOptions): Promise<import("./plan.gql").IssuePlanMutationResult>;
|
|
53
|
-
/**
|
|
54
|
-
* Mutation that issues a new plan for the current user.
|
|
55
|
-
*
|
|
56
|
-
* @param options.issuerUid The same issuerUid that is in the AvailablePlanField returned by queries such as availablePublicPlans
|
|
57
|
-
* @param options.planUid The same planUid that is in the AvailablePlanField returned by queries such as availablePublicPlans
|
|
58
|
-
* @param options.priceId The priceId from PriceOptionField (eg. inside AvailablePlanField)
|
|
59
|
-
* @param options.promotionalCode promotion code where applicable
|
|
60
|
-
* @returns Promise that resolves to a mutation
|
|
61
|
-
*/
|
|
62
|
-
issuePlanMutation(options: IssuePlanOptions): LrMutation<import("./plan.gql").IssuePlanMutationResult, {
|
|
63
|
-
input: IssuePlanOptions;
|
|
64
|
-
}>;
|
|
65
|
-
removePaymentMethod(paymentMethodId: string): Promise<import("./plan.gql").RemovePaymentMethodMutationResult>;
|
|
66
|
-
/**
|
|
67
|
-
* Mutation that removes a payment method for the current user
|
|
68
|
-
*
|
|
69
|
-
* @param paymentMethodId The id from PaymentMethodNode
|
|
70
|
-
* @returns Promise that resolves to a mutation
|
|
71
|
-
*/
|
|
72
|
-
removePaymentMethodMutation(paymentMethodId: LrRelayIdInput): LrMutation<import("./plan.gql").RemovePaymentMethodMutationResult, {
|
|
73
|
-
input: {
|
|
74
|
-
paymentMethodId: string;
|
|
75
|
-
};
|
|
76
|
-
}>;
|
|
77
|
-
cancelPlan(options: CancelPlanOptions): Promise<import("./plan.gql").CancelPlanMutationResult>;
|
|
78
|
-
/**
|
|
79
|
-
* Mutation that removes a payment method for the current user
|
|
80
|
-
*
|
|
81
|
-
* @param options.planId The id from IssuedPlanNode
|
|
82
|
-
* @param options.immediate If true, cancel plan effective immediately. Default false.
|
|
83
|
-
* @returns Promise that resolves to a mutation
|
|
84
|
-
*/
|
|
85
|
-
cancelPlanMutation(options: CancelPlanOptions): LrMutation<import("./plan.gql").CancelPlanMutationResult, {
|
|
86
|
-
input: CancelPlanOptions;
|
|
87
|
-
}>;
|
|
88
|
-
changePriceOption(options: ChangePriceOptionOptions): Promise<import("./plan.gql").ChangePriceOptionMutationResult>;
|
|
89
|
-
/**
|
|
90
|
-
* Change the price option for a plan.
|
|
91
|
-
*
|
|
92
|
-
* @param options.planId The id from IssuedPlanNode
|
|
93
|
-
* @param options.priceId The priceId from PriceOptionField (eg. inside AvailablePlanField)
|
|
94
|
-
* @returns Promise that resolves to a mutation
|
|
95
|
-
*/
|
|
96
|
-
changePriceOptionMutation(options: ChangePriceOptionOptions): LrMutation<import("./plan.gql").ChangePriceOptionMutationResult, {
|
|
97
|
-
input: ChangePriceOptionOptions;
|
|
98
|
-
}>;
|
|
99
|
-
reactivatePlan(planId: LrRelayIdInput): Promise<import("./plan.gql").ReactivatePlanMutationResult>;
|
|
100
|
-
/**
|
|
101
|
-
* Reactivate a cancelled plan with a specified price option.
|
|
102
|
-
*
|
|
103
|
-
* @param options.planId The id from IssuedPlanNode
|
|
104
|
-
* @returns Promise that resolves to a mutation
|
|
105
|
-
*/
|
|
106
|
-
reactivatePlanMutation(planId: LrRelayIdInput): LrMutation<import("./plan.gql").ReactivatePlanMutationResult, {
|
|
107
|
-
input: {
|
|
108
|
-
planId: string;
|
|
109
|
-
};
|
|
110
|
-
}>;
|
|
111
|
-
}
|
package/lib/plan/plan.types.d.ts
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { LrRelayIdInput } from '../api/types';
|
|
2
|
-
export interface IssuePlanOptions {
|
|
3
|
-
issuerUid: string;
|
|
4
|
-
planUid: string;
|
|
5
|
-
priceId: string;
|
|
6
|
-
disableTrial: boolean;
|
|
7
|
-
promotionalCode?: string;
|
|
8
|
-
}
|
|
9
|
-
export interface CancelPlanOptions {
|
|
10
|
-
planId: LrRelayIdInput;
|
|
11
|
-
immediate?: boolean;
|
|
12
|
-
}
|
|
13
|
-
export interface ChangePriceOptionOptions {
|
|
14
|
-
planId: LrRelayIdInput;
|
|
15
|
-
priceId: string;
|
|
16
|
-
}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { LrGraphQLService } from '../api/lr-graphql';
|
|
2
|
-
import { SharedContactCardService } from '../shared-contact-card/shared-contact-card.service';
|
|
3
|
-
import { ProfileService } from './profile.service';
|
|
4
|
-
import { MainContactCard, MainContactCardFields, SharedTrustedPartyDetails, TrustedPartyDetails } from './profile.types';
|
|
5
|
-
export declare class ProfileDetailsService {
|
|
6
|
-
private sharedContactCardService;
|
|
7
|
-
private profileService;
|
|
8
|
-
private api;
|
|
9
|
-
constructor(sharedContactCardService: SharedContactCardService, profileService: ProfileService, api: LrGraphQLService);
|
|
10
|
-
updateDetails(fields: MainContactCardFields): Promise<MainContactCard>;
|
|
11
|
-
updateTrustedPartyDetails(details: SharedTrustedPartyDetails): Promise<void>;
|
|
12
|
-
synchronizeSharedDetails(details: TrustedPartyDetails): Promise<void>;
|
|
13
|
-
private fetchMainContactCard;
|
|
14
|
-
private getTrustedParties;
|
|
15
|
-
private mapTrustedParty;
|
|
16
|
-
private synchronizeContactCards;
|
|
17
|
-
private getChanges;
|
|
18
|
-
private synchronizeSharedContactCard;
|
|
19
|
-
private checkField;
|
|
20
|
-
}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { Connection, ContactCardNode, TpNode } from '../api/types';
|
|
2
|
-
import { HasKeyGraph } from '../key/key.types';
|
|
3
|
-
import { HasEdges } from './../_common/types';
|
|
4
|
-
import { ApiContactCard, ApiCurrentUser } from './profile.types';
|
|
5
|
-
export declare const TrustedPartyProperties: string;
|
|
6
|
-
export interface CurrentUserQueryType extends HasKeyGraph {
|
|
7
|
-
currentUser: ApiCurrentUser;
|
|
8
|
-
contactCards: HasEdges<ApiContactCard>;
|
|
9
|
-
userPlans: any[];
|
|
10
|
-
}
|
|
11
|
-
export declare const CurrentUserQuery: import("graphql").DocumentNode;
|
|
12
|
-
export declare const CreateContactCardMutation: import("graphql").DocumentNode;
|
|
13
|
-
export declare const UpdateContactCardMutation: import("graphql").DocumentNode;
|
|
14
|
-
export interface TrustedPartiesQueryResult {
|
|
15
|
-
tps: Connection<TpNode>;
|
|
16
|
-
}
|
|
17
|
-
export declare const TrustedPartiesQuery: import("../_common/ast").TypedDocumentNode<TrustedPartiesQueryResult>;
|
|
18
|
-
export interface ContactCardsQueryResult {
|
|
19
|
-
contactCards: Connection<ContactCardNode>;
|
|
20
|
-
}
|
|
21
|
-
export declare const ContactCardsQuery: import("../_common/ast").TypedDocumentNode<ContactCardsQueryResult>;
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import { HttpClient } from '@angular/common/http';
|
|
2
|
-
import { LrApolloService } from '../api/lr-apollo.service';
|
|
3
|
-
import { ContactCard } from '../contact-card/contact-card.service';
|
|
4
|
-
import { EncryptionService } from '../encryption/encryption.service';
|
|
5
|
-
import { KeyGraphService } from '../key/key-graph.service';
|
|
6
|
-
import { KeyMetaService } from '../key/key-meta.service';
|
|
7
|
-
import { KeyService } from '../key/key.service';
|
|
8
|
-
import { KcConfig } from '../life-ready.config';
|
|
9
|
-
import { ApiContactCard, ApiCurrentUser, MainContactCard, MainContactCardFields } from './profile.types';
|
|
10
|
-
export declare class ProfileService {
|
|
11
|
-
private config;
|
|
12
|
-
private http;
|
|
13
|
-
private lrApollo;
|
|
14
|
-
private keyService;
|
|
15
|
-
private keyMetaService;
|
|
16
|
-
private keyGraph;
|
|
17
|
-
private encryptionService;
|
|
18
|
-
constructor(config: KcConfig, http: HttpClient, lrApollo: LrApolloService, keyService: KeyService, keyMetaService: KeyMetaService, keyGraph: KeyGraphService, encryptionService: EncryptionService);
|
|
19
|
-
getCurrentUser(): Promise<{
|
|
20
|
-
currentUser: ApiCurrentUser;
|
|
21
|
-
contactCard: ApiContactCard;
|
|
22
|
-
}>;
|
|
23
|
-
decryptContactCard(contactCard: ApiContactCard): Promise<MainContactCard>;
|
|
24
|
-
updateDetails(id: string, keyId: string, fields: MainContactCardFields): Promise<MainContactCard>;
|
|
25
|
-
private prepareContactCardInput;
|
|
26
|
-
private createContactCard;
|
|
27
|
-
private updateContactCard;
|
|
28
|
-
decryptContactCardEdges(edges: any): Promise<ContactCard[]>;
|
|
29
|
-
getContactCards(): Promise<ContactCard[]>;
|
|
30
|
-
deleteContactCard(id: string): Promise<string>;
|
|
31
|
-
signOut(): Promise<void>;
|
|
32
|
-
}
|
|
@@ -1,121 +0,0 @@
|
|
|
1
|
-
import { DateTime, UserDeleteNode, UserSharedKeyNode } from '../api/types';
|
|
2
|
-
import { IdKeyPair } from '../item/item.types';
|
|
3
|
-
import { PassKey } from '../key/key.types';
|
|
4
|
-
export declare enum FeatureAction {
|
|
5
|
-
ACCESS = "access"
|
|
6
|
-
}
|
|
7
|
-
export declare class Features {
|
|
8
|
-
myVault: FeatureAction[];
|
|
9
|
-
tpVault: FeatureAction[];
|
|
10
|
-
shareVault: FeatureAction[];
|
|
11
|
-
}
|
|
12
|
-
export declare class CurrentUserKey {
|
|
13
|
-
passKey: PassKey;
|
|
14
|
-
masterKey: {
|
|
15
|
-
id: string;
|
|
16
|
-
};
|
|
17
|
-
rootKey?: {
|
|
18
|
-
id: string;
|
|
19
|
-
};
|
|
20
|
-
pxk?: {
|
|
21
|
-
id: string;
|
|
22
|
-
};
|
|
23
|
-
sigPxk?: {
|
|
24
|
-
id: string;
|
|
25
|
-
};
|
|
26
|
-
}
|
|
27
|
-
export declare class ApiCurrentUser {
|
|
28
|
-
id: string;
|
|
29
|
-
username: string;
|
|
30
|
-
currentUserKey: CurrentUserKey;
|
|
31
|
-
userDelete: UserDeleteNode;
|
|
32
|
-
features: Features;
|
|
33
|
-
sessionEncryptionKey: string;
|
|
34
|
-
dateJoined: DateTime;
|
|
35
|
-
}
|
|
36
|
-
export declare class ApiContactCard {
|
|
37
|
-
id: string;
|
|
38
|
-
cipherData: string;
|
|
39
|
-
key: {
|
|
40
|
-
id: string;
|
|
41
|
-
};
|
|
42
|
-
}
|
|
43
|
-
export declare class ContactCardName {
|
|
44
|
-
name: string;
|
|
45
|
-
title?: string;
|
|
46
|
-
firstName?: string;
|
|
47
|
-
lastName?: string;
|
|
48
|
-
constructor(input: any);
|
|
49
|
-
}
|
|
50
|
-
export declare class ContactCardAddress {
|
|
51
|
-
fullAddress: string;
|
|
52
|
-
streetAddress: string;
|
|
53
|
-
streetAddress2?: string;
|
|
54
|
-
suburb: string;
|
|
55
|
-
state: string;
|
|
56
|
-
postcode: string;
|
|
57
|
-
country: string;
|
|
58
|
-
countryCode?: string;
|
|
59
|
-
}
|
|
60
|
-
export declare class MainContactCardProperty<T> {
|
|
61
|
-
value: T;
|
|
62
|
-
hasMultiple: boolean;
|
|
63
|
-
values?: {
|
|
64
|
-
id: string;
|
|
65
|
-
label: string;
|
|
66
|
-
value: T;
|
|
67
|
-
}[];
|
|
68
|
-
}
|
|
69
|
-
export declare class MainContactCardFields {
|
|
70
|
-
name: MainContactCardProperty<ContactCardName>;
|
|
71
|
-
email: MainContactCardProperty<string>;
|
|
72
|
-
image: MainContactCardProperty<string>;
|
|
73
|
-
phone: MainContactCardProperty<string>;
|
|
74
|
-
address: MainContactCardProperty<ContactCardAddress>;
|
|
75
|
-
}
|
|
76
|
-
export interface MainContactCard extends IdKeyPair {
|
|
77
|
-
fields: MainContactCardFields;
|
|
78
|
-
}
|
|
79
|
-
export declare class MainContactCardPlainFields {
|
|
80
|
-
name: ContactCardName;
|
|
81
|
-
}
|
|
82
|
-
export declare class TrustedPartyDetails {
|
|
83
|
-
name: ContactCardName;
|
|
84
|
-
email?: string;
|
|
85
|
-
image?: string;
|
|
86
|
-
phones?: {
|
|
87
|
-
label: string;
|
|
88
|
-
value: string;
|
|
89
|
-
}[];
|
|
90
|
-
addresses?: {
|
|
91
|
-
label: string;
|
|
92
|
-
value: ContactCardAddress;
|
|
93
|
-
}[];
|
|
94
|
-
}
|
|
95
|
-
export declare class SharedTrustedPartyDetails extends TrustedPartyDetails {
|
|
96
|
-
id: string;
|
|
97
|
-
ownedKeyId: string;
|
|
98
|
-
sharedKeyId: string;
|
|
99
|
-
}
|
|
100
|
-
export declare class TPFeatures {
|
|
101
|
-
sharedVault: SharedVaultFeature;
|
|
102
|
-
}
|
|
103
|
-
export declare class SharedVaultFeature {
|
|
104
|
-
hasAccess: boolean;
|
|
105
|
-
}
|
|
106
|
-
export declare enum TrustedPartyType {
|
|
107
|
-
User = "user",
|
|
108
|
-
Organisation = "organisation"
|
|
109
|
-
}
|
|
110
|
-
export declare class TrustedParty {
|
|
111
|
-
id: string;
|
|
112
|
-
type: TrustedPartyType;
|
|
113
|
-
name: string;
|
|
114
|
-
hasScenarios: boolean;
|
|
115
|
-
hasSharedVault: boolean;
|
|
116
|
-
details: TrustedPartyDetails;
|
|
117
|
-
mySharedDetails: SharedTrustedPartyDetails;
|
|
118
|
-
userSharedKey: UserSharedKeyNode;
|
|
119
|
-
username: string;
|
|
120
|
-
features: TPFeatures;
|
|
121
|
-
}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { HttpClient } from '@angular/common/http';
|
|
2
|
-
import { AuthClass } from '@aws-amplify/auth/lib-esm/Auth';
|
|
3
|
-
import { EncryptionService } from '../encryption/encryption.service';
|
|
4
|
-
import { KeyFactoryService } from '../key/key-factory.service';
|
|
5
|
-
import { KcConfig } from '../life-ready.config';
|
|
6
|
-
import { PasswordService } from '../password/password.service';
|
|
7
|
-
import { RegisterResult } from './register.types';
|
|
8
|
-
export declare class RegisterService {
|
|
9
|
-
private config;
|
|
10
|
-
private auth;
|
|
11
|
-
private http;
|
|
12
|
-
private keyFactory;
|
|
13
|
-
private encryptionService;
|
|
14
|
-
private passwordService;
|
|
15
|
-
constructor(config: KcConfig, auth: AuthClass, http: HttpClient, keyFactory: KeyFactoryService, encryptionService: EncryptionService, passwordService: PasswordService);
|
|
16
|
-
/**
|
|
17
|
-
* Request a verification code to be sent out to an email.
|
|
18
|
-
* @return Info needed to be submitted along with the verification code
|
|
19
|
-
*/
|
|
20
|
-
verifyEmail(email: string): Promise<string>;
|
|
21
|
-
verifyPhone(phoneNumber: string): Promise<string>;
|
|
22
|
-
confirmVerificationCode(verificationId: string, verificationCode: string): Promise<string>;
|
|
23
|
-
register(email: string, password: CryptoKey, verificationId: string, verificationToken: string, verificationType?: 'email' | 'phone'): Promise<RegisterResult>;
|
|
24
|
-
hibpBreachedAccounts(account: string): Promise<any>;
|
|
25
|
-
}
|
|
@@ -1,23 +0,0 @@
|
|
|
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>;
|
|
@@ -1,33 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { LrRelayIdInput } from '../api/types';
|
|
2
|
-
export interface ReminderPlain {
|
|
3
|
-
label: string;
|
|
4
|
-
message?: string;
|
|
5
|
-
}
|
|
6
|
-
export interface CreateReminderOptions {
|
|
7
|
-
directoryId: LrRelayIdInput;
|
|
8
|
-
firstEvent: Date;
|
|
9
|
-
plainJson: ReminderPlain;
|
|
10
|
-
notifyAheadSeconds?: number;
|
|
11
|
-
}
|
|
12
|
-
export interface UpdateReminderOptions {
|
|
13
|
-
id: LrRelayIdInput;
|
|
14
|
-
firstEvent?: Date;
|
|
15
|
-
plainJson?: ReminderPlain;
|
|
16
|
-
notifyAheadSeconds?: number;
|
|
17
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const SCENARIO_SLIP39_PASSPHRASE = "lifeready";
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { Injector, NgZone } from '@angular/core';
|
|
2
|
-
import { TpNode } from '../api/types';
|
|
3
|
-
import { TpAssemblyController } from '../tp-assembly/tp-assembly';
|
|
4
|
-
export declare class ScenarioAssemblyController extends TpAssemblyController {
|
|
5
|
-
private ngZone;
|
|
6
|
-
private injector;
|
|
7
|
-
slip39Passphrase: string;
|
|
8
|
-
constructor(ngZone: NgZone, injector: Injector);
|
|
9
|
-
getTpWrappingKeyId(tp: TpNode): string;
|
|
10
|
-
}
|