@lifeready/core 8.0.13 → 8.0.15

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.
@@ -164,6 +164,8 @@ export interface ItemShareBase extends Node, TimeStamped {
164
164
  subject?: PublicProfile;
165
165
  shareType?: ShareTypeChoice;
166
166
  detachedShareState?: DetachedShareStateChoice;
167
+ plainMeta?: JSONString;
168
+ plainMetaJson?: JSONObject;
167
169
  }
168
170
  export interface ItemShare<ItemType> extends ItemShareBase {
169
171
  item?: ItemType;
@@ -695,6 +697,7 @@ export interface ServerConfig {
695
697
  relayConnectionMaxLimit?: number;
696
698
  }
697
699
  export interface AvailablePlanField {
700
+ planName?: string;
698
701
  issuerUid?: string;
699
702
  planUid?: string;
700
703
  name?: string;
@@ -704,13 +707,19 @@ export interface AvailablePlanField {
704
707
  }
705
708
  export interface PriceOptionField {
706
709
  priceId?: string;
710
+ planName?: string;
707
711
  name?: string;
712
+ billingPeriod?: BillingPeriodField;
708
713
  description?: string;
709
714
  amount?: number;
710
715
  currency?: string;
711
716
  intervalUnit?: string;
712
717
  intervalCount?: number;
713
718
  }
719
+ export declare enum BillingPeriodField {
720
+ MONTHLY = "MONTHLY",
721
+ ANNUAL = "ANNUAL"
722
+ }
714
723
  export interface TrialPeriodField {
715
724
  years?: number;
716
725
  months?: number;
@@ -68,4 +68,5 @@ export declare class AuthService extends LrService {
68
68
  */
69
69
  debugClearUser(): void;
70
70
  getCurrentUserAttributes(): Promise<LrCognitoUserAttribute[]>;
71
+ debugRetainRbacCache(b: boolean): void;
71
72
  }
@@ -5,6 +5,7 @@ export declare const KC_CONFIG: InjectionToken<KcConfig>;
5
5
  export declare function httpOptions(auth: AuthClass, config: KcConfig): Promise<{
6
6
  withCredentials: boolean;
7
7
  headers: {
8
+ 'x-kc-dev-rbac-cache-mode': string;
8
9
  'x-kc-dev-user': string;
9
10
  authorization: string;
10
11
  };
@@ -19,6 +20,7 @@ export interface KcConfig {
19
20
  disableSessionEncryptionKey?: boolean;
20
21
  debug?: {
21
22
  username?: string;
23
+ rbacCacheMode?: string;
22
24
  };
23
25
  }
24
26
  export declare const configureApollo: (config: KcConfig, auth: AuthClass) => ApolloClientOptions<any>;
@@ -3,6 +3,7 @@ export interface IssuePlanOptions {
3
3
  issuerUid: string;
4
4
  planUid: string;
5
5
  priceId: string;
6
+ disableTrial: boolean;
6
7
  promotionalCode?: string;
7
8
  }
8
9
  export interface CancelPlanOptions {
@@ -1,4 +1,4 @@
1
- import { ID } from '../api/types';
1
+ import { ID, ShareTypeChoice } from '../api/types';
2
2
  export interface TpCurrentUserSharedKeyQuery {
3
3
  tp: {
4
4
  currentUserSharedKey: {
@@ -28,6 +28,7 @@ export interface ItemShareQueryResult {
28
28
  tp: {
29
29
  id: string;
30
30
  };
31
+ shareType: ShareTypeChoice;
31
32
  }
32
33
  export interface DirectoryShareQueryResult {
33
34
  directoryShare: ItemShareQueryResult;
@@ -1,13 +1,13 @@
1
1
  import { Injector, NgZone } from '@angular/core';
2
2
  import { LrMutation, LrService } from '../api/lr-graphql';
3
- import { AccessRoleChoice, LrRelayIdInput } from '../api/types';
3
+ import { AccessRoleChoice, LrRelayIdInput, ShareTypeChoice } from '../api/types';
4
4
  import { EncryptionService } from '../encryption/encryption.service';
5
5
  import { ItemService } from '../item/item.service';
6
6
  import { KeyFactoryService } from '../key/key-factory.service';
7
7
  import { KeyGraphService } from '../key/key-graph.service';
8
8
  import { KeyService } from '../key/key.service';
9
9
  import { CompleteTpMkReshareMutation, DeleteTpMutation, RequestTpMkReshareMutation, RespondTpMkReshareMutation } from './trusted-party.gql';
10
- import { CompleteDetachedItemShareOptions, CreateItemShareOptions, UpdateItemShareOptions } from './trusted-party.types';
10
+ import { CompleteDetachedItemShareOptions, CreateItemShareOptions, UpdateDetachedItemShareOptions, UpdateItemShareOptions } from './trusted-party.types';
11
11
  export declare class TrustedPartyService extends LrService {
12
12
  private ngZone;
13
13
  private injector;
@@ -32,7 +32,8 @@ export declare class TrustedPartyService extends LrService {
32
32
  itemKeyId: any;
33
33
  wrappingKeyId: any;
34
34
  wrappedItemKey: any;
35
- shareType: import("../api/types").ShareTypeChoice;
35
+ shareType: ShareTypeChoice;
36
+ plainMeta: string;
36
37
  };
37
38
  } | {
38
39
  input: {
@@ -42,7 +43,8 @@ export declare class TrustedPartyService extends LrService {
42
43
  itemKeyId: string;
43
44
  wrappingKeyId: string;
44
45
  wrappedItemKey: string;
45
- shareType: import("../api/types").ShareTypeChoice;
46
+ shareType: ShareTypeChoice;
47
+ plainMeta: string;
46
48
  };
47
49
  }>>;
48
50
  createFileShare(options: CreateItemShareOptions): Promise<import("./trusted-party.gql").CreateFileShareMutationResult>;
@@ -54,7 +56,8 @@ export declare class TrustedPartyService extends LrService {
54
56
  itemKeyId: any;
55
57
  wrappingKeyId: any;
56
58
  wrappedItemKey: any;
57
- shareType: import("../api/types").ShareTypeChoice;
59
+ shareType: ShareTypeChoice;
60
+ plainMeta: string;
58
61
  };
59
62
  } | {
60
63
  input: {
@@ -64,7 +67,8 @@ export declare class TrustedPartyService extends LrService {
64
67
  itemKeyId: string;
65
68
  wrappingKeyId: string;
66
69
  wrappedItemKey: string;
67
- shareType: import("../api/types").ShareTypeChoice;
70
+ shareType: ShareTypeChoice;
71
+ plainMeta: string;
68
72
  };
69
73
  }>>;
70
74
  private prepareCreateItemShareMutation;
@@ -72,10 +76,11 @@ export declare class TrustedPartyService extends LrService {
72
76
  updateDirectoryShareMutation(options: UpdateItemShareOptions): Promise<LrMutation<import("./trusted-party.gql").UpdateDirectoryShareMutationResult, {
73
77
  input: {
74
78
  id: string;
75
- accessRole: AccessRoleChoice.DENY;
76
- itemKeyId: any;
77
- wrappingKeyId: any;
78
- wrappedItemKey: any;
79
+ accessRole: AccessRoleChoice;
80
+ plainMeta: string;
81
+ itemKeyId?: undefined;
82
+ wrappingKeyId?: undefined;
83
+ wrappedItemKey?: undefined;
79
84
  };
80
85
  } | {
81
86
  input: {
@@ -84,16 +89,26 @@ export declare class TrustedPartyService extends LrService {
84
89
  itemKeyId: string;
85
90
  wrappingKeyId: string;
86
91
  wrappedItemKey: string;
92
+ plainMeta: string;
93
+ };
94
+ }>>;
95
+ updateDetachedDirectoryShare(options: UpdateDetachedItemShareOptions): Promise<import("./trusted-party.gql").UpdateDirectoryShareMutationResult>;
96
+ updateDetachedDirectoryShareMutation(options: UpdateDetachedItemShareOptions): Promise<LrMutation<import("./trusted-party.gql").UpdateDirectoryShareMutationResult, {
97
+ input: {
98
+ id: string;
99
+ accessRole: AccessRoleChoice;
100
+ plainMeta: string;
87
101
  };
88
102
  }>>;
89
103
  updateFileShare(options: UpdateItemShareOptions): Promise<import("./trusted-party.gql").UpdateFileShareMutationResult>;
90
104
  updateFileShareMutation(options: UpdateItemShareOptions): Promise<LrMutation<import("./trusted-party.gql").UpdateFileShareMutationResult, {
91
105
  input: {
92
106
  id: string;
93
- accessRole: AccessRoleChoice.DENY;
94
- itemKeyId: any;
95
- wrappingKeyId: any;
96
- wrappedItemKey: any;
107
+ accessRole: AccessRoleChoice;
108
+ plainMeta: string;
109
+ itemKeyId?: undefined;
110
+ wrappingKeyId?: undefined;
111
+ wrappedItemKey?: undefined;
97
112
  };
98
113
  } | {
99
114
  input: {
@@ -102,11 +117,21 @@ export declare class TrustedPartyService extends LrService {
102
117
  itemKeyId: string;
103
118
  wrappingKeyId: string;
104
119
  wrappedItemKey: string;
120
+ plainMeta: string;
121
+ };
122
+ }>>;
123
+ updateDetachedFileShare(options: UpdateDetachedItemShareOptions): Promise<import("./trusted-party.gql").UpdateFileShareMutationResult>;
124
+ updateDetachedFileShareMutation(options: UpdateDetachedItemShareOptions): Promise<LrMutation<import("./trusted-party.gql").UpdateFileShareMutationResult, {
125
+ input: {
126
+ id: string;
127
+ accessRole: AccessRoleChoice;
128
+ plainMeta: string;
105
129
  };
106
130
  }>>;
107
131
  private getDirectoryShare;
108
132
  private getFileShare;
109
133
  private prepareUpdateItemShareMutation;
134
+ private prepareUpdateDetachedItemShareMutation;
110
135
  deleteDirectoryShare(id: string): Promise<import("./trusted-party.gql").DeleteDirectoryShareMutationResult>;
111
136
  deleteDirectoryShareMutation(id: string): Promise<LrMutation<import("./trusted-party.gql").DeleteDirectoryShareMutationResult, {
112
137
  input: {
@@ -1,20 +1,27 @@
1
- import { AccessRoleChoice, LrRelayIdInput, ShareTypeChoice } from '../api/types';
1
+ import { AccessRoleChoice, JSONObject, LrRelayIdInput, ShareTypeChoice } from '../api/types';
2
2
  export interface CreateItemShareOptions {
3
3
  itemId: LrRelayIdInput;
4
4
  tpId: LrRelayIdInput;
5
5
  accessRole: AccessRoleChoice;
6
6
  shareType: ShareTypeChoice;
7
+ plainMetaJson?: JSONObject;
7
8
  itemKeyId?: LrRelayIdInput;
8
9
  tpSharedKeyId?: LrRelayIdInput;
9
10
  }
10
11
  export interface UpdateItemShareOptions {
11
12
  itemShareId: LrRelayIdInput;
12
- accessRole: AccessRoleChoice;
13
+ accessRole?: AccessRoleChoice;
14
+ plainMetaJson?: JSONObject;
13
15
  itemId?: LrRelayIdInput;
14
16
  itemKeyId?: LrRelayIdInput;
15
17
  tpId?: LrRelayIdInput;
16
18
  tpSharedKeyId?: LrRelayIdInput;
17
19
  }
20
+ export interface UpdateDetachedItemShareOptions {
21
+ itemShareId: LrRelayIdInput;
22
+ accessRole?: AccessRoleChoice;
23
+ plainMetaJson?: JSONObject;
24
+ }
18
25
  export interface CompleteDetachedItemShareOptions {
19
26
  itemShareId: LrRelayIdInput;
20
27
  itemKeyId?: LrRelayIdInput;