entropic-bond 1.50.4 → 1.51.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.
Files changed (33) hide show
  1. package/lib/auth/auth-mock.d.ts +3 -2
  2. package/lib/auth/auth.d.ts +3 -2
  3. package/lib/cloud-functions/cloud-functions-mock.d.ts +1 -0
  4. package/lib/cloud-storage/mock-cloud-storage.d.ts +1 -0
  5. package/lib/cloud-storage/stored-file.d.ts +4 -3
  6. package/lib/entropic-bond.js +432 -361
  7. package/lib/entropic-bond.js.map +1 -1
  8. package/lib/entropic-bond.umd.cjs +2 -2
  9. package/lib/entropic-bond.umd.cjs.map +1 -1
  10. package/lib/persistent/entropic-component.d.ts +3 -2
  11. package/lib/persistent/persistent.d.ts +3 -1
  12. package/lib/server-auth/server-auth-mock.d.ts +3 -2
  13. package/lib/server-auth/server-auth.d.ts +1 -0
  14. package/lib/store/data-source.d.ts +22 -1
  15. package/lib/store/json-data-source.d.ts +7 -3
  16. package/lib/store/mocks/test-user.d.ts +6 -0
  17. package/lib/store/model.d.ts +3 -2
  18. package/lib/store/store.d.ts +3 -2
  19. package/lib/types/utility-types.d.ts +2 -2
  20. package/lib/utils/utils.d.ts +2 -1
  21. package/package.json +9 -9
  22. package/lib/auth/auth-mock.spec.d.ts +0 -1
  23. package/lib/cloud-functions/cloud-functions-mock.spec.d.ts +0 -1
  24. package/lib/cloud-storage/cloud-storage.spec.d.ts +0 -1
  25. package/lib/observable/observable.spec.d.ts +0 -1
  26. package/lib/persistent/entropic-component.spec.d.ts +0 -1
  27. package/lib/persistent/persistent.spec.d.ts +0 -67
  28. package/lib/server-auth/server-auth-mock.spec.d.ts +0 -1
  29. package/lib/store/json-data-source.spec.d.ts +0 -1
  30. package/lib/store/model.spec.d.ts +0 -1
  31. package/lib/store/store.spec.d.ts +0 -1
  32. package/lib/types/utility-types.spec.d.ts +0 -1
  33. package/lib/utils/utils.spec.d.ts +0 -1
@@ -1,6 +1,7 @@
1
+ import { UserCredentials, SignData, AuthProvider } from './user-auth-types';
2
+ import { AuthService } from './auth';
1
3
  import { Collection } from '../types/utility-types';
2
- import { AuthService } from "./auth";
3
- import { UserCredentials, SignData, AuthProvider } from "./user-auth-types";
4
+
4
5
  export declare class AuthMock extends AuthService {
5
6
  signUp<T extends {}>(signData: SignData): Promise<UserCredentials<T>>;
6
7
  login<T extends {}>(signData: SignData): Promise<UserCredentials<T>>;
@@ -1,4 +1,5 @@
1
- import { AuthProvider, SignData, UserCredentials } from "./user-auth-types";
1
+ import { AuthProvider, SignData, UserCredentials } from './user-auth-types';
2
+
2
3
  /**
3
4
  * The AuthService class is an abstract class that defines the interface of an authentication service.
4
5
  * You should derive from this class to implement your own authentication service.
@@ -100,7 +101,7 @@ export declare class Auth extends AuthService {
100
101
  * }
101
102
  * })
102
103
  */
103
- onAuthStateChange<T extends {}>(onChange: (userCredentials: UserCredentials<T>) => void): import("../observable/observable").Unsubscriber;
104
+ onAuthStateChange<T extends {}>(onChange: (userCredentials: UserCredentials<T>) => void): import('../observable/observable').Unsubscriber;
104
105
  /**
105
106
  * Removes a listener that was added by `onAuthStateChange` method.
106
107
  * @param onChange the listener to be removed
@@ -1,4 +1,5 @@
1
1
  import { CloudFunction, CloudFunctionsService } from './cloud-functions';
2
+
2
3
  interface FunctionCollection {
3
4
  [key: string]: CloudFunction<any, any>;
4
5
  }
@@ -1,4 +1,5 @@
1
1
  import { CloudStorage, StorableData, UploadControl } from './cloud-storage';
2
+
2
3
  export declare class MockCloudStorage extends CloudStorage {
3
4
  constructor(pathToMockFiles?: string);
4
5
  /**
@@ -1,6 +1,7 @@
1
- import { Callback } from '../observable/observable';
2
- import { Persistent } from '../persistent/persistent';
3
1
  import { CloudStorage, StorableData, UploadControl, UploadProgress } from './cloud-storage';
2
+ import { Persistent } from '../persistent/persistent';
3
+ import { Callback } from '../observable/observable';
4
+
4
5
  export declare enum StoredFileEvent {
5
6
  stored = 0,
6
7
  pendingDataSet = 1,
@@ -27,7 +28,7 @@ export declare class StoredFile extends Persistent {
27
28
  get mimeType(): string | undefined;
28
29
  setDataToStore(data: StorableData): this;
29
30
  get originalFileName(): string | undefined;
30
- onChange(listenerCallback: Callback<StoredFileChange>): import("../observable/observable").Unsubscriber;
31
+ onChange(listenerCallback: Callback<StoredFileChange>): import('../observable/observable').Unsubscriber;
31
32
  private _reference;
32
33
  private _url;
33
34
  private _cloudStorageProviderName;