@lifeready/core 1.0.21 → 1.0.23
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/bundles/lifeready-core.umd.js +10612 -10527
- package/bundles/lifeready-core.umd.js.map +1 -1
- package/bundles/lifeready-core.umd.min.js +1 -15
- package/bundles/lifeready-core.umd.min.js.map +1 -1
- package/esm2015/lib/_common/ast.js +2 -1
- package/esm2015/lib/_common/deferred-promise.js +1 -1
- package/esm2015/lib/_common/exceptions.js +1 -1
- package/esm2015/lib/_common/queries.gql.js +1 -1
- package/esm2015/lib/_common/run-outside-angular.js +3 -2
- package/esm2015/lib/_common/types.js +2 -1
- package/esm2015/lib/_common/utils.js +2 -1
- package/esm2015/lib/api/lr-apollo.service.js +4 -3
- package/esm2015/lib/api/lr-graphql/index.js +1 -1
- package/esm2015/lib/api/lr-graphql/lr-graphql.service.js +9 -8
- package/esm2015/lib/api/lr-graphql/lr-merged-mutation.js +5 -6
- package/esm2015/lib/api/lr-graphql/lr-mutation-base.js +1 -1
- package/esm2015/lib/api/lr-graphql/lr-mutation.js +3 -3
- package/esm2015/lib/api/lr-graphql/lr.service.js +1 -1
- package/esm2015/lib/api/query-processor/common-processors.service.js +4 -3
- package/esm2015/lib/api/query-processor/index.js +1 -1
- package/esm2015/lib/api/query-processor/query-processor.service.js +5 -4
- package/esm2015/lib/api/query-processor/tp-password-reset-processor.service.js +8 -7
- package/esm2015/lib/api/types/graphql.types.js +2 -1
- package/esm2015/lib/api/types/index.js +1 -1
- package/esm2015/lib/api/types/lr-graphql.types.js +1 -1
- package/esm2015/lib/auth/auth.config.js +1 -1
- package/esm2015/lib/auth/auth.gql.js +1 -28
- package/esm2015/lib/auth/auth.types.js +1 -1
- package/esm2015/lib/auth/life-ready-auth.service.js +36 -32
- package/esm2015/lib/category/category-meta.service.js +1 -1
- package/esm2015/lib/category/category.gql.js +3 -2
- package/esm2015/lib/category/category.service.js +9 -8
- package/esm2015/lib/category/category.types.js +1 -1
- package/esm2015/lib/contact-card/contact-card.gql.js +79 -0
- package/esm2015/lib/contact-card/contact-card.service.js +156 -0
- package/esm2015/lib/contact-card/contact-card2.gql.js +29 -0
- package/esm2015/lib/contact-card/contact-card2.service.js +103 -0
- package/esm2015/lib/encryption/encryption.service.js +190 -0
- package/esm2015/lib/file-upload/file-upload.service.js +74 -0
- package/esm2015/lib/file-upload/file-upload.types.js +2 -0
- package/esm2015/lib/idle/idle.service.js +168 -0
- package/esm2015/lib/idle/idle.types.js +7 -0
- package/esm2015/lib/item2/item2.gql.js +127 -0
- package/esm2015/lib/item2/item2.gql.private.js +23 -0
- package/esm2015/lib/item2/item2.service.js +519 -0
- package/esm2015/lib/item2/item2.types.js +2 -0
- package/esm2015/lib/key/key-factory.service.js +237 -0
- package/esm2015/lib/key/key-graph.service.js +300 -0
- package/esm2015/lib/key/key-meta.service.js +201 -0
- package/esm2015/lib/{cryptography → key}/key.service.js +4 -4
- package/esm2015/lib/key/key.types.js +11 -0
- package/esm2015/lib/key-exchange/key-exchange.gql.js +188 -0
- package/esm2015/lib/key-exchange/key-exchange.service.js +441 -0
- package/esm2015/lib/key-exchange/key-exchange.types.js +7 -0
- package/esm2015/lib/key-exchange/key-exchange2.gql.js +171 -0
- package/esm2015/lib/key-exchange/key-exchange2.service.js +500 -0
- package/esm2015/lib/lbop/lbop.service.js +357 -0
- package/esm2015/lib/life-ready.config.js +2 -1
- package/esm2015/lib/life-ready.module.js +2 -27
- package/esm2015/lib/lock/lock.gql.js +40 -0
- package/esm2015/lib/lock/lock.service.js +64 -0
- package/esm2015/lib/message/message.gql.js +32 -0
- package/esm2015/lib/message/message.service.js +118 -0
- package/esm2015/lib/message/message.types.js +2 -0
- package/esm2015/lib/notification/notification.gql.js +1 -1
- package/esm2015/lib/notification/notification.service.js +2 -2
- package/esm2015/lib/password/password.gql.js +28 -0
- package/esm2015/lib/password/password.service.js +316 -0
- package/esm2015/lib/persist/persist.service.js +181 -0
- package/esm2015/lib/plan/plan.gql.js +1 -1
- package/esm2015/lib/plan/plan.service.js +3 -2
- package/esm2015/lib/plan/plan.types.js +1 -1
- package/esm2015/lib/profile/profile-details.service.js +215 -0
- package/esm2015/lib/profile/profile.gql.js +98 -0
- package/esm2015/lib/profile/profile.service.js +170 -0
- package/esm2015/lib/profile/profile.types.js +34 -0
- package/esm2015/lib/record/record-attachment.service.js +16 -15
- package/esm2015/lib/record/record.gql.js +1 -1
- package/esm2015/lib/record/record.service.js +8 -8
- package/esm2015/lib/record/record.types.js +1 -1
- package/esm2015/lib/record-type/record-type.service.js +1 -1
- package/esm2015/lib/record-type/record-type.types.js +1 -1
- package/esm2015/lib/register/register.service.js +173 -0
- package/esm2015/lib/scenario/scenario.constants.js +1 -1
- package/esm2015/lib/scenario/scenario.controller.js +2 -2
- package/esm2015/lib/scenario/scenario.gql.js +1 -1
- package/esm2015/lib/scenario/scenario.private.gql.js +198 -0
- package/esm2015/lib/scenario/scenario.service.js +19 -17
- package/esm2015/lib/scenario/scenario.types.js +2 -1
- package/esm2015/lib/shared-contact-card/shared-contact-card.service.js +119 -0
- package/esm2015/lib/shared-contact-card/shared-contact-card2.gql.js +41 -0
- package/esm2015/lib/shared-contact-card/shared-contact-card2.service.js +117 -0
- package/esm2015/lib/slip39/slip39.service.js +167 -0
- package/esm2015/lib/time/time.service.js +146 -0
- package/esm2015/lib/tp-assembly/tp-assembly.js +365 -0
- package/esm2015/lib/tp-assembly/tp-assembly.private.gql.js +22 -0
- package/esm2015/lib/tp-assembly/tp-assembly.types.js +2 -0
- package/esm2015/lib/tp-password-reset/tp-password-reset-request.service.js +100 -0
- package/esm2015/lib/tp-password-reset/tp-password-reset-user.service.js +118 -0
- package/esm2015/lib/tp-password-reset/tp-password-reset.constants.js +4 -0
- package/esm2015/lib/tp-password-reset/tp-password-reset.controller.js +34 -0
- package/esm2015/lib/tp-password-reset/tp-password-reset.gql.js +74 -0
- package/esm2015/lib/tp-password-reset/tp-password-reset.private.gql.js +165 -0
- package/esm2015/lib/tp-password-reset/tp-password-reset.private.service.js +54 -0
- package/esm2015/lib/tp-password-reset/tp-password-reset.service.js +92 -0
- package/esm2015/lib/tp-password-reset/tp-password-reset.types.js +2 -0
- package/esm2015/lib/trusted-party/trusted-party.gql.js +148 -0
- package/esm2015/lib/trusted-party/trusted-party.service.js +327 -0
- package/esm2015/lib/trusted-party/trusted-party.types.js +41 -0
- package/esm2015/lib/trusted-party/trusted-party2.gql.js +64 -0
- package/esm2015/lib/trusted-party/trusted-party2.gql.private.js +25 -0
- package/esm2015/lib/trusted-party/trusted-party2.service.js +224 -0
- package/esm2015/lib/trusted-party/trusted-party2.types.js +2 -0
- package/esm2015/lib/two-factor/two-factor.service.js +74 -0
- package/esm2015/lib/user/user.gql.js +60 -0
- package/esm2015/lib/user/user.service.js +80 -0
- package/esm2015/lib/user/user.types.js +2 -0
- package/esm2015/lib/web-crypto/web-crypto.service.js +29 -0
- package/esm2015/lifeready-core.js +15 -13
- package/esm2015/public-api.js +49 -51
- package/fesm2015/lifeready-core.js +8764 -8737
- package/fesm2015/lifeready-core.js.map +1 -1
- package/lib/_common/types.d.ts +3 -1
- package/lib/_common/utils.d.ts +2 -2
- package/lib/api/lr-apollo.service.d.ts +2 -2
- package/lib/api/lr-graphql/lr-graphql.service.d.ts +26 -8
- package/lib/api/lr-graphql/lr-merged-mutation.d.ts +22 -4
- package/lib/api/lr-graphql/lr-mutation.d.ts +1 -2
- package/lib/api/query-processor/common-processors.service.d.ts +1 -1
- package/lib/api/query-processor/query-processor.service.d.ts +1 -1
- package/lib/api/query-processor/tp-password-reset-processor.service.d.ts +2 -2
- package/lib/api/types/lr-graphql.types.d.ts +14 -3
- package/lib/auth/auth.gql.d.ts +0 -3
- package/lib/auth/auth.types.d.ts +5 -5
- package/lib/auth/life-ready-auth.service.d.ts +13 -13
- package/lib/category/category.gql.d.ts +1 -1
- package/lib/category/category.service.d.ts +3 -3
- package/lib/{api → contact-card}/contact-card.service.d.ts +9 -9
- package/lib/contact-card/contact-card2.gql.d.ts +25 -0
- package/lib/contact-card/contact-card2.service.d.ts +64 -0
- package/lib/{cryptography → encryption}/encryption.service.d.ts +10 -9
- package/lib/{api/file.service.d.ts → file-upload/file-upload.service.d.ts} +5 -8
- package/lib/file-upload/file-upload.types.d.ts +5 -0
- package/lib/{auth → idle}/idle.service.d.ts +6 -6
- package/lib/{items2 → item2}/item2.gql.d.ts +16 -16
- package/lib/{items2 → item2}/item2.service.d.ts +34 -35
- package/lib/{cryptography → key}/key-factory.service.d.ts +4 -3
- package/lib/{cryptography → key}/key-graph.service.d.ts +6 -6
- package/lib/{cryptography → key}/key-meta.service.d.ts +1 -1
- package/lib/{cryptography → key}/key.service.d.ts +2 -2
- package/lib/{cryptography/cryptography.types.d.ts → key/key.types.d.ts} +13 -17
- package/lib/{api → key-exchange}/key-exchange.service.d.ts +5 -5
- package/lib/{api → key-exchange}/key-exchange.types.d.ts +4 -4
- package/lib/{api → key-exchange}/key-exchange2.gql.d.ts +1 -1
- package/lib/{api → key-exchange}/key-exchange2.service.d.ts +82 -29
- package/lib/{auth → lbop}/lbop.service.d.ts +7 -7
- package/lib/life-ready.config.d.ts +1 -1
- package/lib/{api → lock}/lock.gql.d.ts +1 -1
- package/lib/{api → lock}/lock.service.d.ts +1 -1
- package/lib/message/message.gql.d.ts +13 -0
- package/lib/message/message.service.d.ts +36 -0
- package/lib/message/message.types.d.ts +12 -0
- package/lib/notification/notification.service.d.ts +3 -2
- package/lib/password/password.gql.d.ts +3 -0
- package/lib/{auth → password}/password.service.d.ts +9 -9
- package/lib/{api → persist}/persist.service.d.ts +3 -3
- package/lib/plan/plan.service.d.ts +3 -2
- package/lib/plan/plan.types.d.ts +2 -1
- package/lib/{users → profile}/profile-details.service.d.ts +3 -3
- package/lib/{users → profile}/profile.gql.d.ts +2 -2
- package/lib/{users → profile}/profile.service.d.ts +6 -6
- package/lib/{users → profile}/profile.types.d.ts +3 -2
- package/lib/record/record-attachment.service.d.ts +6 -6
- package/lib/record/record.service.d.ts +3 -3
- package/lib/{auth → register}/register.service.d.ts +4 -4
- package/lib/scenario/scenario.controller.d.ts +1 -1
- package/lib/scenario/scenario.service.d.ts +105 -5
- package/lib/scenario/scenario.types.d.ts +1 -1
- package/lib/{api → shared-contact-card}/shared-contact-card.service.d.ts +9 -9
- package/lib/{api → shared-contact-card}/shared-contact-card2.gql.d.ts +1 -1
- package/lib/{api → shared-contact-card}/shared-contact-card2.service.d.ts +6 -6
- package/lib/{cryptography → slip39}/slip39.service.d.ts +0 -1
- package/lib/{trusted-parties → tp-assembly}/tp-assembly.d.ts +7 -7
- package/lib/{trusted-parties → tp-assembly}/tp-assembly.types.d.ts +3 -3
- package/lib/{trusted-parties → tp-password-reset}/tp-password-reset-request.service.d.ts +5 -9
- package/lib/{trusted-parties → tp-password-reset}/tp-password-reset-user.service.d.ts +7 -13
- package/lib/{trusted-parties → tp-password-reset}/tp-password-reset.controller.d.ts +1 -1
- package/lib/tp-password-reset/tp-password-reset.gql.d.ts +63 -0
- package/lib/{trusted-parties/tp-password-reset.gql.d.ts → tp-password-reset/tp-password-reset.private.gql.d.ts} +1 -63
- package/lib/tp-password-reset/tp-password-reset.private.service.d.ts +59 -0
- package/lib/{trusted-parties → tp-password-reset}/tp-password-reset.service.d.ts +6 -89
- package/lib/tp-password-reset/tp-password-reset.types.d.ts +40 -0
- package/lib/{trusted-parties → trusted-party}/trusted-party.service.d.ts +7 -7
- package/lib/{trusted-parties → trusted-party}/trusted-party.types.d.ts +2 -3
- package/lib/{trusted-parties → trusted-party}/trusted-party2.gql.d.ts +0 -22
- package/lib/trusted-party/trusted-party2.gql.private.d.ts +23 -0
- package/lib/{trusted-parties → trusted-party}/trusted-party2.service.d.ts +11 -35
- package/lib/trusted-party/trusted-party2.types.d.ts +12 -0
- package/lib/{users → user}/user.gql.d.ts +1 -1
- package/lib/{users → user}/user.service.d.ts +1 -1
- package/lib/{users → user}/user.types.d.ts +1 -1
- package/lifeready-core.d.ts +14 -12
- package/lifeready-core.metadata.json +1 -1
- package/package.json +2 -2
- package/public-api.d.ts +48 -50
- package/esm2015/lib/api/contact-card.gql.js +0 -79
- package/esm2015/lib/api/contact-card.service.js +0 -154
- package/esm2015/lib/api/contact-card2.gql.js +0 -60
- package/esm2015/lib/api/contact-card2.service.js +0 -103
- package/esm2015/lib/api/file.service.js +0 -74
- package/esm2015/lib/api/key-exchange.gql.js +0 -188
- package/esm2015/lib/api/key-exchange.service.js +0 -442
- package/esm2015/lib/api/key-exchange.types.js +0 -7
- package/esm2015/lib/api/key-exchange2.gql.js +0 -171
- package/esm2015/lib/api/key-exchange2.service.js +0 -480
- package/esm2015/lib/api/lock.gql.js +0 -40
- package/esm2015/lib/api/lock.service.js +0 -64
- package/esm2015/lib/api/message.service.js +0 -138
- package/esm2015/lib/api/persist.service.js +0 -181
- package/esm2015/lib/api/shared-contact-card.service.js +0 -119
- package/esm2015/lib/api/shared-contact-card2.gql.js +0 -41
- package/esm2015/lib/api/shared-contact-card2.service.js +0 -117
- package/esm2015/lib/api/time.service.js +0 -146
- package/esm2015/lib/auth/idle.service.js +0 -168
- package/esm2015/lib/auth/idle.types.js +0 -7
- package/esm2015/lib/auth/lbop.service.js +0 -355
- package/esm2015/lib/auth/password.service.js +0 -315
- package/esm2015/lib/auth/register.service.js +0 -172
- package/esm2015/lib/auth/two-factor.service.js +0 -74
- package/esm2015/lib/cryptography/cryptography.types.js +0 -11
- package/esm2015/lib/cryptography/encryption.service.js +0 -189
- package/esm2015/lib/cryptography/key-factory.service.js +0 -237
- package/esm2015/lib/cryptography/key-graph.service.js +0 -299
- package/esm2015/lib/cryptography/key-meta.service.js +0 -200
- package/esm2015/lib/cryptography/slip39.service.js +0 -169
- package/esm2015/lib/cryptography/web-crypto.service.js +0 -29
- package/esm2015/lib/items2/item2.gql.js +0 -127
- package/esm2015/lib/items2/item2.gql.private.js +0 -23
- package/esm2015/lib/items2/item2.service.js +0 -516
- package/esm2015/lib/items2/item2.types.js +0 -1
- package/esm2015/lib/scenario/scenario.gql.private.js +0 -198
- package/esm2015/lib/trusted-parties/tp-assembly.gql.private.js +0 -22
- package/esm2015/lib/trusted-parties/tp-assembly.js +0 -365
- package/esm2015/lib/trusted-parties/tp-assembly.types.js +0 -1
- package/esm2015/lib/trusted-parties/tp-password-reset-request.service.js +0 -113
- package/esm2015/lib/trusted-parties/tp-password-reset-user.service.js +0 -129
- package/esm2015/lib/trusted-parties/tp-password-reset.constants.js +0 -4
- package/esm2015/lib/trusted-parties/tp-password-reset.controller.js +0 -34
- package/esm2015/lib/trusted-parties/tp-password-reset.gql.js +0 -237
- package/esm2015/lib/trusted-parties/tp-password-reset.service.js +0 -95
- package/esm2015/lib/trusted-parties/trusted-party.gql.js +0 -148
- package/esm2015/lib/trusted-parties/trusted-party.service.js +0 -326
- package/esm2015/lib/trusted-parties/trusted-party.types.js +0 -41
- package/esm2015/lib/trusted-parties/trusted-party2.gql.js +0 -87
- package/esm2015/lib/trusted-parties/trusted-party2.service.js +0 -218
- package/esm2015/lib/users/profile-details.service.js +0 -214
- package/esm2015/lib/users/profile.gql.js +0 -97
- package/esm2015/lib/users/profile.service.js +0 -169
- package/esm2015/lib/users/profile.types.js +0 -34
- package/esm2015/lib/users/user.gql.js +0 -60
- package/esm2015/lib/users/user.service.js +0 -79
- package/esm2015/lib/users/user.types.js +0 -1
- package/lib/api/contact-card2.gql.d.ts +0 -34
- package/lib/api/contact-card2.service.d.ts +0 -50
- package/lib/api/message.service.d.ts +0 -59
- /package/lib/{api → contact-card}/contact-card.gql.d.ts +0 -0
- /package/lib/{auth → idle}/idle.types.d.ts +0 -0
- /package/lib/{items2 → item2}/item2.gql.private.d.ts +0 -0
- /package/lib/{items2 → item2}/item2.types.d.ts +0 -0
- /package/lib/{api → key-exchange}/key-exchange.gql.d.ts +0 -0
- /package/lib/scenario/{scenario.gql.private.d.ts → scenario.private.gql.d.ts} +0 -0
- /package/lib/{api → time}/time.service.d.ts +0 -0
- /package/lib/{trusted-parties/tp-assembly.gql.private.d.ts → tp-assembly/tp-assembly.private.gql.d.ts} +0 -0
- /package/lib/{trusted-parties → tp-password-reset}/tp-password-reset.constants.d.ts +0 -0
- /package/lib/{trusted-parties → trusted-party}/trusted-party.gql.d.ts +0 -0
- /package/lib/{auth → two-factor}/two-factor.service.d.ts +0 -0
- /package/lib/{cryptography → web-crypto}/web-crypto.service.d.ts +0 -0
package/lib/_common/types.d.ts
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
import { HasKeyGraph } from '../
|
|
1
|
+
import { HasKeyGraph } from '../key/key.types';
|
|
2
|
+
export declare type SomePartial<T, K extends keyof T> = Pick<Partial<T>, K> & Omit<T, K>;
|
|
3
|
+
export declare type SomeRequired<T, K extends keyof T> = Pick<Required<T>, K> & Omit<T, K>;
|
|
2
4
|
export interface Edge<T> {
|
|
3
5
|
node: T;
|
|
4
6
|
}
|
package/lib/_common/utils.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export declare function promiseAllMayAsync(values: any[]): Promise<any> | any;
|
|
2
|
-
export declare function mapValuesMayAsync(obj:
|
|
3
|
-
export declare function mapValuesAsync(obj:
|
|
2
|
+
export declare function mapValuesMayAsync(obj: Record<string, any>, callback: (value: any, key: string, obj: Record<string, any>) => any | Promise<any>): Promise<any> | any;
|
|
3
|
+
export declare function mapValuesAsync(obj: Record<string, any>, callback?: (value: any, key: string, obj: Record<string, any>) => any | Promise<any>): Promise<any>;
|
|
4
4
|
/**
|
|
5
5
|
* Returns the defaultValue when value is undefined
|
|
6
6
|
* @param value The value to check
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import { MutationOptions, QueryOptions } from '@apollo/client/core';
|
|
1
2
|
import { Apollo } from 'apollo-angular';
|
|
2
|
-
import {
|
|
3
|
-
import { KeyGraphService } from '../cryptography/key-graph.service';
|
|
3
|
+
import { KeyGraphService } from '../key/key-graph.service';
|
|
4
4
|
export declare class LrApolloService {
|
|
5
5
|
private apollo;
|
|
6
6
|
private keyGraph;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { NgZone } from '@angular/core';
|
|
2
|
-
import {
|
|
3
|
-
import { QueryOptions, MutationOptions, OperationVariables, FetchPolicy } from '@apollo/client/core';
|
|
2
|
+
import { FetchPolicy, MutationOptions, OperationVariables, QueryOptions } from '@apollo/client/core';
|
|
4
3
|
import { MutationBaseOptions } from '@apollo/client/core/watchQueryOptions';
|
|
5
|
-
import {
|
|
4
|
+
import { Apollo } from 'apollo-angular';
|
|
5
|
+
import { KeyGraphService } from '../../key/key-graph.service';
|
|
6
6
|
import { TypedDocumentNode } from '../../_common/ast';
|
|
7
7
|
import { ProcessorOptions, QueryProcessorService } from '../query-processor';
|
|
8
|
-
import { LrMutationBase } from './lr-mutation-base';
|
|
9
8
|
import { LrMergedMutation } from './lr-merged-mutation';
|
|
9
|
+
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;
|
|
@@ -45,10 +45,28 @@ export declare class LrGraphQLService {
|
|
|
45
45
|
statsSnapshot(): LrGraphQLServiceStats;
|
|
46
46
|
private addKeys;
|
|
47
47
|
private isIncludeKeyGraph;
|
|
48
|
-
lrMutate<T1, TVariables1, T2, TVariables2>(lrMutations: [
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
48
|
+
lrMutate<T1, TVariables1, T2, TVariables2>(lrMutations: [
|
|
49
|
+
LrMutationMayAsync<T1, TVariables1>,
|
|
50
|
+
LrMutationMayAsync<T2, TVariables2>
|
|
51
|
+
], options?: LrMutationOptions): Promise<[T1, T2]>;
|
|
52
|
+
lrMutate<T1, TVariables1, T2, TVariables2, T3, TVariables3>(lrMutations: [
|
|
53
|
+
LrMutationMayAsync<T1, TVariables1>,
|
|
54
|
+
LrMutationMayAsync<T2, TVariables2>,
|
|
55
|
+
LrMutationMayAsync<T3, TVariables3>
|
|
56
|
+
], options?: LrMutationOptions): Promise<[T1, T2, T3]>;
|
|
57
|
+
lrMutate<T1, TVariables1, T2, TVariables2, T3, TVariables3, T4, TVariables4>(lrMutations: [
|
|
58
|
+
LrMutationMayAsync<T1, TVariables1>,
|
|
59
|
+
LrMutationMayAsync<T2, TVariables2>,
|
|
60
|
+
LrMutationMayAsync<T3, TVariables3>,
|
|
61
|
+
LrMutationMayAsync<T4, TVariables4>
|
|
62
|
+
], options?: LrMutationOptions): Promise<[T1, T2, T3, T4]>;
|
|
63
|
+
lrMutate<T1, TVariables1, T2, TVariables2, T3, TVariables3, T4, TVariables4, T5, TVariables5>(lrMutations: [
|
|
64
|
+
LrMutationMayAsync<T1, TVariables1>,
|
|
65
|
+
LrMutationMayAsync<T2, TVariables2>,
|
|
66
|
+
LrMutationMayAsync<T3, TVariables3>,
|
|
67
|
+
LrMutationMayAsync<T4, TVariables4>,
|
|
68
|
+
LrMutationMayAsync<T5, TVariables5>
|
|
69
|
+
], options?: LrMutationOptions): Promise<[T1, T2, T3, T4, T5]>;
|
|
52
70
|
lrMutate<T, TVariables = {
|
|
53
71
|
[key: string]: any;
|
|
54
72
|
}>(lrMutation: LrMutationMayAsync<T, TVariables>, options?: LrMutationOptions<T, TVariables>): Promise<T>;
|
|
@@ -4,10 +4,28 @@ export declare class LrMergedMutation<T> extends LrMutationBase<T> {
|
|
|
4
4
|
readonly descendants: Set<LrMutationBase<any>>;
|
|
5
5
|
protected prefixes: string[];
|
|
6
6
|
constructor(lrMutations: LrMutationBase<any>[]);
|
|
7
|
-
static create<T1, T2>(lrMutations: [
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
7
|
+
static create<T1, T2>(lrMutations: [
|
|
8
|
+
LrMutationBase<T1> | LrMergedMutation<T1>,
|
|
9
|
+
LrMutationBase<T2> | LrMergedMutation<T2>
|
|
10
|
+
]): LrMergedMutation<[T1, T2]>;
|
|
11
|
+
static create<T1, T2, T3>(lrMutations: [
|
|
12
|
+
LrMutationBase<T1> | LrMergedMutation<T1>,
|
|
13
|
+
LrMutationBase<T2> | LrMergedMutation<T2>,
|
|
14
|
+
LrMutationBase<T3> | LrMergedMutation<T3>
|
|
15
|
+
]): LrMergedMutation<[T1, T2, T3]>;
|
|
16
|
+
static create<T1, T2, T3, T4>(lrMutations: [
|
|
17
|
+
LrMutationBase<T1> | LrMergedMutation<T1>,
|
|
18
|
+
LrMutationBase<T2> | LrMergedMutation<T2>,
|
|
19
|
+
LrMutationBase<T3> | LrMergedMutation<T3>,
|
|
20
|
+
LrMutationBase<T4> | LrMergedMutation<T4>
|
|
21
|
+
]): LrMergedMutation<[T1, T2, T3, T4]>;
|
|
22
|
+
static create<T1, T2, T3, T4, T5>(lrMutations: [
|
|
23
|
+
LrMutationBase<T1> | LrMergedMutation<T1>,
|
|
24
|
+
LrMutationBase<T2> | LrMergedMutation<T2>,
|
|
25
|
+
LrMutationBase<T3> | LrMergedMutation<T3>,
|
|
26
|
+
LrMutationBase<T4> | LrMergedMutation<T4>,
|
|
27
|
+
LrMutationBase<T5> | LrMergedMutation<T5>
|
|
28
|
+
]): LrMergedMutation<[T1, T2, T3, T4, T5]>;
|
|
11
29
|
static create<T>(lrMutations: LrMutationBase<T>[]): LrMergedMutation<T[]>;
|
|
12
30
|
static create(lrMutations: LrMutationBase<any>[]): LrMergedMutation<any[]>;
|
|
13
31
|
private getDescendants;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { OperationVariables } from '@apollo/client/core';
|
|
2
2
|
import { TypedDocumentNode } from '../../_common/ast';
|
|
3
|
-
import { LrMutationData } from './lr-mutation-base';
|
|
4
|
-
import { LrMutationBase } from './lr-mutation-base';
|
|
3
|
+
import { LrMutationBase, LrMutationData } from './lr-mutation-base';
|
|
5
4
|
export declare class LrMutation<T extends any, TVariables = OperationVariables> extends LrMutationBase<T, TVariables> {
|
|
6
5
|
constructor(options: LrMutationData<T, TVariables>);
|
|
7
6
|
select<TResult>(fragments: TypedDocumentNode<TResult>): LrMutation<TResult, TVariables>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { NgZone } from '@angular/core';
|
|
2
|
-
import { KeyGraphService } from '../../
|
|
2
|
+
import { KeyGraphService } from '../../key/key-graph.service';
|
|
3
3
|
import { Connection } from '../types';
|
|
4
4
|
export interface ProcessorOptions {
|
|
5
5
|
hasKeys: boolean;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { NgZone } from '@angular/core';
|
|
2
|
-
import { KeyService } from '../../
|
|
2
|
+
import { KeyService } from '../../key/key.service';
|
|
3
3
|
import { CommonProcessorsService, ProcessorOptions } from './common-processors.service';
|
|
4
4
|
import { TpPasswordResetProcessorService } from './tp-password-reset-processor.service';
|
|
5
5
|
export declare class QueryProcessorService {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { NgZone } from '@angular/core';
|
|
2
|
-
import { KeyGraphService } from '../../
|
|
2
|
+
import { KeyGraphService } from '../../key/key-graph.service';
|
|
3
|
+
import { TpPasswordResetNode, TpPasswordResetUserNode } from '../types';
|
|
3
4
|
import { ProcessorCallbackParams } from './common-processors.service';
|
|
4
|
-
import { TpPasswordResetUserNode, TpPasswordResetNode } from '../types';
|
|
5
5
|
export declare class TpPasswordResetProcessorService {
|
|
6
6
|
private ngZone;
|
|
7
7
|
private keyGraph;
|
|
@@ -187,9 +187,9 @@ export interface ContactCardSharedCipherData {
|
|
|
187
187
|
export interface OtKeyCipherClearJson2 {
|
|
188
188
|
nonce: string;
|
|
189
189
|
initiator: {
|
|
190
|
-
oneTimePbk:
|
|
191
|
-
pbk:
|
|
192
|
-
sigPbk:
|
|
190
|
+
oneTimePbk: Record<string, JSONObject>;
|
|
191
|
+
pbk: Record<string, JSONObject>;
|
|
192
|
+
sigPbk: Record<string, JSONObject>;
|
|
193
193
|
message?: JSONObject;
|
|
194
194
|
contactCard?: ContactCardSharedCipherData;
|
|
195
195
|
};
|
|
@@ -458,6 +458,7 @@ export declare enum ScenarioLastClaimState {
|
|
|
458
458
|
export interface ScenarioLatestClaim {
|
|
459
459
|
state?: ScenarioLastClaimState;
|
|
460
460
|
created?: DateTime;
|
|
461
|
+
claimAgainAfter?: DateTime;
|
|
461
462
|
}
|
|
462
463
|
export interface ScenarioNode extends Node, TimeStamped {
|
|
463
464
|
subject?: UserNode;
|
|
@@ -569,3 +570,13 @@ export declare enum LinkTypeField {
|
|
|
569
570
|
HARD = "HARD",
|
|
570
571
|
SOFT = "SOFT"
|
|
571
572
|
}
|
|
573
|
+
export interface MessageNode extends Node, TimeStamped {
|
|
574
|
+
sender?: UserNode;
|
|
575
|
+
receiver?: UserNode;
|
|
576
|
+
sharedKey?: KeyNode;
|
|
577
|
+
senderSigPbk?: KeyNode;
|
|
578
|
+
plainMessage?: string;
|
|
579
|
+
plainMessageJson?: string;
|
|
580
|
+
signedCipherMessage?: string;
|
|
581
|
+
signedCipherMessageClearJson?: string;
|
|
582
|
+
}
|
package/lib/auth/auth.gql.d.ts
CHANGED
|
@@ -1,6 +1,3 @@
|
|
|
1
|
-
export declare const PasswordChangeRequestMutation: import("graphql").DocumentNode;
|
|
2
|
-
export declare const PasswordChangeMutation: import("graphql").DocumentNode;
|
|
3
|
-
export declare const PasswordChangeConfigQuery: import("graphql").DocumentNode;
|
|
4
1
|
export interface SetSessionEncryptionKeyMutation {
|
|
5
2
|
setSessionEncryptionKey: {
|
|
6
3
|
sessionEncryptionKey: string;
|
package/lib/auth/auth.types.d.ts
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
import { CognitoUser } from '@aws-amplify/auth';
|
|
2
2
|
import { JWK } from 'node-jose';
|
|
3
|
-
import { TpPasswordResetUserNode, UserDeleteNode } from '../api/types';
|
|
4
|
-
import { PassIdpParams, PassKeyParams } from '../
|
|
3
|
+
import { JSONObject, TpPasswordResetUserNode, UserDeleteNode } from '../api/types';
|
|
4
|
+
import { PassIdpParams, PassKeyParams } from '../key/key.types';
|
|
5
5
|
import { UserPlan } from '../plan/plan.types';
|
|
6
|
-
import { CurrentUserKey, MainContactCard } from '../
|
|
6
|
+
import { CurrentUserKey, MainContactCard } from '../profile/profile.types';
|
|
7
7
|
export interface PassKeyBundle {
|
|
8
8
|
passKeyParams: PassKeyParams;
|
|
9
9
|
passKey: JWK.Key;
|
|
10
10
|
passIdpParams: PassIdpParams;
|
|
11
11
|
passIdp: JWK.Key;
|
|
12
12
|
passIdpVerifier: JWK.Key;
|
|
13
|
-
wrappedPassIdpVerifierPrk:
|
|
13
|
+
wrappedPassIdpVerifierPrk: Record<string, JSONObject>;
|
|
14
14
|
}
|
|
15
15
|
export declare class CognitoChallengeUser extends CognitoUser {
|
|
16
16
|
recoveryStatus: RecoveryStatus;
|
|
17
17
|
challengeName: 'SMS_MFA' | 'SOFTWARE_TOKEN_MFA';
|
|
18
|
-
challengeParam:
|
|
18
|
+
challengeParam: JSONObject;
|
|
19
19
|
isTpPasswordResetUser: boolean;
|
|
20
20
|
}
|
|
21
21
|
export declare enum FeatureAction {
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import { Observable } from 'rxjs';
|
|
2
|
-
import { KeyGraphService } from '../cryptography/key-graph.service';
|
|
3
|
-
import { KeyService } from '../cryptography/key.service';
|
|
4
|
-
import { ProfileService } from '../users/profile.service';
|
|
5
|
-
import { CognitoChallengeUser, CurrentUser, TpPasswordResetUser, LoginResult } from './auth.types';
|
|
6
|
-
import { PasswordService } from './password.service';
|
|
7
1
|
import { AuthClass } from '@aws-amplify/auth/lib-esm/Auth';
|
|
8
|
-
import {
|
|
9
|
-
import { KeyFactoryService } from '../cryptography/key-factory.service';
|
|
2
|
+
import { ReplaySubject } from 'rxjs';
|
|
10
3
|
import { LrGraphQLService } from '../api/lr-graphql';
|
|
11
4
|
import { TpPasswordResetProcessorService } from '../api/query-processor/tp-password-reset-processor.service';
|
|
12
|
-
import {
|
|
5
|
+
import { EncryptionService } from '../encryption/encryption.service';
|
|
6
|
+
import { IdleService } from '../idle/idle.service';
|
|
7
|
+
import { KeyFactoryService } from '../key/key-factory.service';
|
|
8
|
+
import { KeyGraphService } from '../key/key-graph.service';
|
|
9
|
+
import { KeyService } from '../key/key.service';
|
|
13
10
|
import { LifeReadyConfig } from '../life-ready.config';
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
11
|
+
import { PasswordService } from '../password/password.service';
|
|
12
|
+
import { PersistService } from '../persist/persist.service';
|
|
13
|
+
import { ProfileService } from '../profile/profile.service';
|
|
14
|
+
import { Slip39Service } from '../slip39/slip39.service';
|
|
15
|
+
import { TpPasswordResetAssemblyController } from '../tp-password-reset/tp-password-reset.controller';
|
|
16
|
+
import { CognitoChallengeUser, CurrentUser, LoginResult, TpPasswordResetUser } from './auth.types';
|
|
17
17
|
export declare const initialiseAuth: (authService: LifeReadyAuthService) => () => Promise<void>;
|
|
18
18
|
export interface LoginOptions {
|
|
19
19
|
tpPasswordResetAutoComplete?: boolean;
|
|
@@ -51,7 +51,7 @@ export declare class LifeReadyAuthService {
|
|
|
51
51
|
getUser(reload?: boolean): Promise<CurrentUser>;
|
|
52
52
|
private mapTPVaultAccess;
|
|
53
53
|
private loadUser;
|
|
54
|
-
watchAuth():
|
|
54
|
+
watchAuth(): ReplaySubject<any>;
|
|
55
55
|
logout(): Promise<void>;
|
|
56
56
|
private getUserAttribute;
|
|
57
57
|
loadResetUser(password?: string): Promise<TpPasswordResetUser>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { LrApolloService } from '../api/lr-apollo.service';
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
2
|
+
import { KeyGraphService } from '../key/key-graph.service';
|
|
3
|
+
import { KeyMetaService } from '../key/key-meta.service';
|
|
4
|
+
import { Category, NewCategory, UpdatedCategory, Vault, VaultCategory, VaultRecord } from './category.types';
|
|
5
5
|
export declare class CategoryService {
|
|
6
6
|
private lrApollo;
|
|
7
7
|
private keyMetaService;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
1
|
+
import { LrApolloService } from '../api/lr-apollo.service';
|
|
2
|
+
import { JSONObject } from '../api/types';
|
|
3
|
+
import { EncryptionService } from '../encryption/encryption.service';
|
|
4
|
+
import { KeyFactoryService } from '../key/key-factory.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 { Key } from '../key/key.types';
|
|
9
|
+
import { MainContactCardPlainFields } from '../profile/profile.types';
|
|
5
10
|
import { HasEdges } from '../_common/types';
|
|
6
|
-
import { LrApolloService } from './lr-apollo.service';
|
|
7
|
-
import { KeyFactoryService } from '../cryptography/key-factory.service';
|
|
8
|
-
import { MainContactCardPlainFields } from '../users/profile.types';
|
|
9
|
-
import { KeyMetaService } from '../cryptography/key-meta.service';
|
|
10
|
-
import { JSONObject } from './types';
|
|
11
11
|
export declare class ContactCard {
|
|
12
12
|
id: string;
|
|
13
13
|
key: Key;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { ID } from '../api/types';
|
|
2
|
+
export interface CreateContactCardMutationResult {
|
|
3
|
+
createContactCard: {
|
|
4
|
+
contactCard: {
|
|
5
|
+
id: ID;
|
|
6
|
+
};
|
|
7
|
+
};
|
|
8
|
+
}
|
|
9
|
+
export declare const CreateContactCardMutation: import("../_common/ast").TypedDocumentNode<CreateContactCardMutationResult>;
|
|
10
|
+
export interface UpdateContactCardMutationResult {
|
|
11
|
+
updateContactCard: {
|
|
12
|
+
contactCard: {
|
|
13
|
+
id: ID;
|
|
14
|
+
};
|
|
15
|
+
};
|
|
16
|
+
}
|
|
17
|
+
export declare const UpdateContactCardMutation: import("../_common/ast").TypedDocumentNode<UpdateContactCardMutationResult>;
|
|
18
|
+
export interface DeleteContactCardMutationResult {
|
|
19
|
+
deleteContactCard: {
|
|
20
|
+
deleteContactCard: {
|
|
21
|
+
id: ID;
|
|
22
|
+
};
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
export declare const DeleteContactCardMutation: import("../_common/ast").TypedDocumentNode<DeleteContactCardMutationResult>;
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import { NgZone } from '@angular/core';
|
|
2
|
+
import { LrMutation } from '../api/lr-graphql';
|
|
3
|
+
import { JSONObject } from '../api/types';
|
|
4
|
+
import { EncryptionService } from '../encryption/encryption.service';
|
|
5
|
+
import { KeyFactoryService } from '../key/key-factory.service';
|
|
6
|
+
import { KeyGraphService } from '../key/key-graph.service';
|
|
7
|
+
import { KeyMetaService } from '../key/key-meta.service';
|
|
8
|
+
import { KeyService } from '../key/key.service';
|
|
9
|
+
import { MainContactCardPlainFields } from '../profile/profile.types';
|
|
10
|
+
export interface CreateContactCardInput2 {
|
|
11
|
+
publicDataJson: JSONObject;
|
|
12
|
+
publicSearchableJson: JSONObject;
|
|
13
|
+
plainCipherDataJson: JSONObject;
|
|
14
|
+
plainDataJson: MainContactCardPlainFields;
|
|
15
|
+
}
|
|
16
|
+
export interface ContactCardName2 {
|
|
17
|
+
name: string;
|
|
18
|
+
title?: string;
|
|
19
|
+
firstName?: string;
|
|
20
|
+
lastName?: string;
|
|
21
|
+
}
|
|
22
|
+
export declare class OwnerPlainDataJson {
|
|
23
|
+
name: ContactCardName2;
|
|
24
|
+
}
|
|
25
|
+
export interface UpdateContactCardInput2 extends CreateContactCardInput2 {
|
|
26
|
+
id: string;
|
|
27
|
+
keyId: string;
|
|
28
|
+
}
|
|
29
|
+
export declare class ContactCard2Service {
|
|
30
|
+
private keyFactory;
|
|
31
|
+
private keyService;
|
|
32
|
+
private encryptionService;
|
|
33
|
+
private keyGraph;
|
|
34
|
+
private keyMetaService;
|
|
35
|
+
private ngZone;
|
|
36
|
+
constructor(keyFactory: KeyFactoryService, keyService: KeyService, encryptionService: EncryptionService, keyGraph: KeyGraphService, keyMetaService: KeyMetaService, ngZone: NgZone);
|
|
37
|
+
createContactCard(input: CreateContactCardInput2): Promise<LrMutation<import("./contact-card2.gql").CreateContactCardMutationResult, {
|
|
38
|
+
input: {
|
|
39
|
+
wrappingKeyId: string;
|
|
40
|
+
wrappedKey: string;
|
|
41
|
+
cipherData: string;
|
|
42
|
+
sigPxkId: string;
|
|
43
|
+
publicDataSig: string;
|
|
44
|
+
publicSearchableSig: string;
|
|
45
|
+
plainDataSig: string;
|
|
46
|
+
};
|
|
47
|
+
}>>;
|
|
48
|
+
updateContactCard(input: UpdateContactCardInput2): Promise<LrMutation<import("./contact-card2.gql").UpdateContactCardMutationResult, {
|
|
49
|
+
input: {
|
|
50
|
+
id: string;
|
|
51
|
+
cipherData: string;
|
|
52
|
+
sigPxkId: string;
|
|
53
|
+
publicDataSig: string;
|
|
54
|
+
publicSearchableSig: string;
|
|
55
|
+
plainDataSig: string;
|
|
56
|
+
};
|
|
57
|
+
}>>;
|
|
58
|
+
deleteContactCard(id: string): LrMutation<import("./contact-card2.gql").DeleteContactCardMutationResult, {
|
|
59
|
+
input: {
|
|
60
|
+
id: string;
|
|
61
|
+
};
|
|
62
|
+
}>;
|
|
63
|
+
private prepareContactCardInput;
|
|
64
|
+
}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
/// <reference types="node" />
|
|
2
2
|
import { JWE, JWK } from 'node-jose';
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
3
|
+
import { JSONObject } from '../api/types';
|
|
4
|
+
import { Key, PayloadType } from '../key/key.types';
|
|
5
|
+
import { TimeService } from '../time/time.service';
|
|
5
6
|
export declare enum JoseSerialization {
|
|
6
7
|
JSON = "JSON",
|
|
7
8
|
COMPACT = "COMPACT"
|
|
@@ -23,17 +24,17 @@ export declare class EncryptionService {
|
|
|
23
24
|
private timeService;
|
|
24
25
|
constructor(timeService: TimeService);
|
|
25
26
|
decrypt(key: JWK.Key | Key, // string is assumed to be key.id, will unwrap key.
|
|
26
|
-
jwe:
|
|
27
|
+
jwe: Record<string, JSONObject> | string, // string will be JSON.parsed
|
|
27
28
|
options?: DecryptOptions): Promise<JWE.DecryptResult | any>;
|
|
28
|
-
encryptToString(key: JWK.Key, content: ArrayBuffer | string |
|
|
29
|
-
encrypt(key: JWK.Key, content: ArrayBuffer | string |
|
|
30
|
-
sign(key: JWK.Key, content: Buffer | string |
|
|
31
|
-
signToString(key: JWK.Key, content: Buffer | string |
|
|
32
|
-
verify(key: JWK.Key, jws:
|
|
29
|
+
encryptToString(key: JWK.Key, content: ArrayBuffer | string | Record<string, JSONObject>): Promise<string>;
|
|
30
|
+
encrypt(key: JWK.Key, content: ArrayBuffer | string | Record<string, JSONObject>): Promise<any>;
|
|
31
|
+
sign(key: JWK.Key, content: Buffer | string | Record<string, JSONObject>): Promise<any>;
|
|
32
|
+
signToString(key: JWK.Key, content: Buffer | string | Record<string, JSONObject>): Promise<string>;
|
|
33
|
+
verify(key: JWK.Key, jws: Record<string, JSONObject>, options?: VerifyOptions): Promise<any>;
|
|
33
34
|
encryptThenSign({ key, sigPrk, }: {
|
|
34
35
|
key: JWK.Key;
|
|
35
36
|
sigPrk: JWK.Key;
|
|
36
|
-
}, content: ArrayBuffer | string |
|
|
37
|
+
}, content: ArrayBuffer | string | Record<string, JSONObject>): Promise<{
|
|
37
38
|
cipher: string;
|
|
38
39
|
sig: string;
|
|
39
40
|
}>;
|
|
@@ -1,17 +1,14 @@
|
|
|
1
1
|
import { HttpClient } from '@angular/common/http';
|
|
2
|
-
import {
|
|
2
|
+
import { JSONObject } from '../api/types';
|
|
3
3
|
import { LifeReadyAuthService } from '../auth/life-ready-auth.service';
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
fileName?: string;
|
|
8
|
-
}
|
|
9
|
-
export declare class FileService {
|
|
4
|
+
import { LifeReadyConfig } from '../life-ready.config';
|
|
5
|
+
import { UploadEncryptedFileOptions } from './file-upload.types';
|
|
6
|
+
export declare class FileUploadService {
|
|
10
7
|
private config;
|
|
11
8
|
private http;
|
|
12
9
|
private lrAuth;
|
|
13
10
|
constructor(config: LifeReadyConfig, http: HttpClient, lrAuth: LifeReadyAuthService);
|
|
14
|
-
downloadEncryptedFile(fileStateNodeId: string): Promise<
|
|
11
|
+
downloadEncryptedFile(fileStateNodeId: string): Promise<JSONObject>;
|
|
15
12
|
downloadEncryptedFile2(fileStateNodeId: string): Promise<string>;
|
|
16
13
|
loadFile(file: File): Promise<ArrayBuffer>;
|
|
17
14
|
uploadEncryptedFile(options: UploadEncryptedFileOptions): Promise<string>;
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
+
import { HttpClient } from '@angular/common/http';
|
|
2
|
+
import { AuthClass } from '@aws-amplify/auth/lib-esm/Auth';
|
|
1
3
|
import { Idle } from '@ng-idle/core';
|
|
2
4
|
import { Keepalive } from '@ng-idle/keepalive';
|
|
3
|
-
import { KeyService } from '../
|
|
5
|
+
import { KeyService } from '../key/key.service';
|
|
6
|
+
import { Key } from '../key/key.types';
|
|
4
7
|
import { LifeReadyConfig } from '../life-ready.config';
|
|
5
|
-
import { HttpClient } from '@angular/common/http';
|
|
6
8
|
import { KeepaliveResult } from './idle.types';
|
|
7
|
-
import { Key } from '../cryptography/cryptography.types';
|
|
8
|
-
import { AuthClass } from '@aws-amplify/auth/lib-esm/Auth';
|
|
9
9
|
export interface IdleServiceInit {
|
|
10
|
-
onTimeout?: (() =>
|
|
11
|
-
onKeepalive?: (() =>
|
|
10
|
+
onTimeout?: (() => void) | (() => Promise<void>) | null;
|
|
11
|
+
onKeepalive?: (() => void) | (() => Promise<void>) | null;
|
|
12
12
|
idleSec?: number;
|
|
13
13
|
timeoutSec?: number;
|
|
14
14
|
keepAliveIntervalSec?: number;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { DateTime, ID } from '../api/types';
|
|
2
|
-
export interface
|
|
2
|
+
export interface CreateDirectoryMutationResult {
|
|
3
3
|
createDirectory: {
|
|
4
4
|
directory: {
|
|
5
5
|
id: ID;
|
|
@@ -7,8 +7,8 @@ export interface CreateDirectoryMutation {
|
|
|
7
7
|
};
|
|
8
8
|
};
|
|
9
9
|
}
|
|
10
|
-
export declare const CreateDirectoryMutation: import("../_common/ast").TypedDocumentNode<
|
|
11
|
-
export interface
|
|
10
|
+
export declare const CreateDirectoryMutation: import("../_common/ast").TypedDocumentNode<CreateDirectoryMutationResult>;
|
|
11
|
+
export interface UpdateDirectoryMutationResult {
|
|
12
12
|
updateDirectory: {
|
|
13
13
|
directory: {
|
|
14
14
|
id: ID;
|
|
@@ -16,29 +16,29 @@ export interface UpdateDirectoryMutation {
|
|
|
16
16
|
};
|
|
17
17
|
};
|
|
18
18
|
}
|
|
19
|
-
export declare const UpdateDirectoryMutation: import("../_common/ast").TypedDocumentNode<
|
|
20
|
-
export interface
|
|
19
|
+
export declare const UpdateDirectoryMutation: import("../_common/ast").TypedDocumentNode<UpdateDirectoryMutationResult>;
|
|
20
|
+
export interface DeleteDirectoryMutationResult {
|
|
21
21
|
deleteDirectory: {
|
|
22
22
|
id: ID;
|
|
23
23
|
};
|
|
24
24
|
}
|
|
25
|
-
export declare const DeleteDirectoryMutation: import("../_common/ast").TypedDocumentNode<
|
|
26
|
-
export interface
|
|
25
|
+
export declare const DeleteDirectoryMutation: import("../_common/ast").TypedDocumentNode<DeleteDirectoryMutationResult>;
|
|
26
|
+
export interface CreateFileMutationResult {
|
|
27
27
|
createFile: {
|
|
28
28
|
file: {
|
|
29
29
|
id: ID;
|
|
30
30
|
};
|
|
31
31
|
};
|
|
32
32
|
}
|
|
33
|
-
export declare const CreateFileMutation: import("../_common/ast").TypedDocumentNode<
|
|
34
|
-
export interface
|
|
33
|
+
export declare const CreateFileMutation: import("../_common/ast").TypedDocumentNode<CreateFileMutationResult>;
|
|
34
|
+
export interface UpdateFileMutationResult {
|
|
35
35
|
updateFile: {
|
|
36
36
|
file: {
|
|
37
37
|
id: ID;
|
|
38
38
|
};
|
|
39
39
|
};
|
|
40
40
|
}
|
|
41
|
-
export declare const UpdateFileMutation: import("../_common/ast").TypedDocumentNode<
|
|
41
|
+
export declare const UpdateFileMutation: import("../_common/ast").TypedDocumentNode<UpdateFileMutationResult>;
|
|
42
42
|
export interface RevertFileMutationResult {
|
|
43
43
|
revertFile: {
|
|
44
44
|
file: {
|
|
@@ -47,28 +47,28 @@ export interface RevertFileMutationResult {
|
|
|
47
47
|
};
|
|
48
48
|
}
|
|
49
49
|
export declare const RevertFileMutation: import("../_common/ast").TypedDocumentNode<RevertFileMutationResult>;
|
|
50
|
-
export interface
|
|
50
|
+
export interface DeleteFileMutationResult {
|
|
51
51
|
deleteFile: {
|
|
52
52
|
id: ID;
|
|
53
53
|
};
|
|
54
54
|
}
|
|
55
|
-
export declare const DeleteFileMutation: import("../_common/ast").TypedDocumentNode<
|
|
56
|
-
export interface
|
|
55
|
+
export declare const DeleteFileMutation: import("../_common/ast").TypedDocumentNode<DeleteFileMutationResult>;
|
|
56
|
+
export interface ArchiveDirectoryMutationResult {
|
|
57
57
|
archiveDirectory: {
|
|
58
58
|
directory: {
|
|
59
59
|
id: ID;
|
|
60
60
|
};
|
|
61
61
|
};
|
|
62
62
|
}
|
|
63
|
-
export declare const ArchiveDirectoryMutation: import("../_common/ast").TypedDocumentNode<
|
|
64
|
-
export interface
|
|
63
|
+
export declare const ArchiveDirectoryMutation: import("../_common/ast").TypedDocumentNode<ArchiveDirectoryMutationResult>;
|
|
64
|
+
export interface UnarchiveDirectoryMutationResult {
|
|
65
65
|
unarchiveDirectory: {
|
|
66
66
|
directory: {
|
|
67
67
|
id: ID;
|
|
68
68
|
};
|
|
69
69
|
};
|
|
70
70
|
}
|
|
71
|
-
export declare const UnarchiveDirectoryMutation: import("../_common/ast").TypedDocumentNode<
|
|
71
|
+
export declare const UnarchiveDirectoryMutation: import("../_common/ast").TypedDocumentNode<UnarchiveDirectoryMutationResult>;
|
|
72
72
|
export interface ChangeDirectoryParentsMutationResult {
|
|
73
73
|
unarchiveDirectory: {
|
|
74
74
|
directory: {
|