dexie-cloud-addon 4.0.0-beta.15 → 4.0.0-beta.18

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.
@@ -1,5 +1,5 @@
1
1
  import { DexieCloudOptions } from './DexieCloudOptions';
2
- import { DexieCloudSchema } from 'dexie-cloud-common';
2
+ import { DBRealmRole, DexieCloudSchema } from 'dexie-cloud-common';
3
3
  import { UserLogin } from './db/entities/UserLogin';
4
4
  import * as Rx from 'rxjs';
5
5
  import { PersistedSyncState } from './db/entities/PersistedSyncState';
@@ -22,6 +22,9 @@ export interface DexieCloudAPI {
22
22
  persistedSyncState: Rx.BehaviorSubject<PersistedSyncState | undefined>;
23
23
  userInteraction: Rx.BehaviorSubject<DXCUserInteraction | undefined>;
24
24
  invites: Rx.Observable<Invite[]>;
25
+ roles: Rx.Observable<{
26
+ [roleName: string]: DBRealmRole;
27
+ }>;
25
28
  usingServiceWorker?: boolean;
26
29
  /** Login using Dexie Cloud OTP or Demo user.
27
30
  *
@@ -61,6 +61,7 @@ export declare class WSConnection extends Subscription {
61
61
  constructor(databaseUrl: string, rev: string, realmSetHash: string, clientIdentity: string, token: string | undefined, tokenExpiration: Date | undefined, subscriber: Subscriber<WSConnectionMsg>, messageProducer: Observable<WSClientToServerMsg>, webSocketStatus: BehaviorSubject<DXCWebSocketStatus>);
62
62
  private teardown;
63
63
  private disconnect;
64
+ reconnecting: boolean;
64
65
  reconnect(): void;
65
66
  connect(): Promise<void>;
66
67
  }
@@ -0,0 +1,5 @@
1
+ import Dexie from 'dexie';
2
+ import { DBRealmRole } from 'dexie-cloud-common';
3
+ export declare const getGlobalRolesObservable: (x: Dexie) => import("./mapValueObservable").ObservableWithCurrentValue<{
4
+ [roleName: string]: DBRealmRole;
5
+ }>;
@@ -4,7 +4,7 @@ export declare const getInvitesObservable: (x: Dexie) => import("./mapValueObser
4
4
  realm: import("dexie-cloud-common").DBRealm & {
5
5
  permissions: import("dexie-cloud-common").DBPermissionSet;
6
6
  };
7
- id?: string | undefined;
7
+ id: string;
8
8
  userId?: string | undefined;
9
9
  email?: string | undefined;
10
10
  name?: string | undefined;