@entropic-bond/firebase 1.13.2 → 1.13.3

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 (41) hide show
  1. package/README.md +0 -0
  2. package/lib/auth/firebase-auth.d.ts +20 -0
  3. package/lib/auth/firebase-auth.spec.d.ts +1 -0
  4. package/lib/cloud-functions/firebase-cloud-functions.d.ts +7 -0
  5. package/lib/cloud-functions/firebase-cloud-functions.spec.d.ts +6 -0
  6. package/lib/cloud-storage/firebase-cloud-storage.d.ts +10 -0
  7. package/lib/cloud-storage/firebase-cloud-storage.spec.d.ts +1 -0
  8. package/lib/entropic-bond-firebase.js +23777 -0
  9. package/lib/entropic-bond-firebase.umd.cjs +3677 -0
  10. package/lib/firebase-helper.d.ts +38 -0
  11. package/lib/index.d.ts +5 -0
  12. package/lib/mocks/test-user.d.ts +49 -0
  13. package/lib/store/firebase-datasource.d.ts +19 -0
  14. package/lib/store/firebase-datasource.spec.d.ts +1 -0
  15. package/package.json +4 -1
  16. package/.firebaserc +0 -5
  17. package/.github/workflows/release.yml +0 -27
  18. package/CHANGELOG.md +0 -338
  19. package/firebase.json +0 -30
  20. package/firestore.indexes.json +0 -4
  21. package/firestore.rules +0 -8
  22. package/functions/package-lock.json +0 -2344
  23. package/functions/package.json +0 -26
  24. package/functions/src/index.ts +0 -33
  25. package/functions/tsconfig.json +0 -19
  26. package/src/auth/firebase-auth.spec.ts +0 -90
  27. package/src/auth/firebase-auth.ts +0 -212
  28. package/src/cloud-functions/firebase-cloud-functions.spec.ts +0 -47
  29. package/src/cloud-functions/firebase-cloud-functions.ts +0 -25
  30. package/src/cloud-storage/firebase-cloud-storage.spec.ts +0 -135
  31. package/src/cloud-storage/firebase-cloud-storage.ts +0 -67
  32. package/src/firebase-helper.ts +0 -92
  33. package/src/index.ts +0 -5
  34. package/src/mocks/mock-data.json +0 -148
  35. package/src/mocks/test-user.ts +0 -121
  36. package/src/store/firebase-datasource.spec.ts +0 -555
  37. package/src/store/firebase-datasource.ts +0 -146
  38. package/storage.rules +0 -8
  39. package/tsconfig-build.json +0 -7
  40. package/tsconfig.json +0 -30
  41. package/vite.config.ts +0 -23
package/README.md CHANGED
File without changes
@@ -0,0 +1,20 @@
1
+ import { AuthProvider, SignData, UserCredentials, AuthService } from 'entropic-bond';
2
+ import { User, UserCredential } from 'firebase/auth';
3
+ import { EmulatorConfig } from '../firebase-helper';
4
+ export declare class FirebaseAuth extends AuthService {
5
+ constructor(emulator?: EmulatorConfig);
6
+ signUp<T extends {}>(signData: SignData): Promise<UserCredentials<T>>;
7
+ login<T extends {}>(signData: SignData): Promise<UserCredentials<T>>;
8
+ logout(): Promise<void>;
9
+ resetEmailPassword(email: string): Promise<void>;
10
+ resendVerificationEmail(email: string, password: string, verificationLink: string): Promise<void>;
11
+ refreshToken(): Promise<void>;
12
+ onAuthStateChange<T extends {}>(onChange: (userCredentials: UserCredentials<T> | undefined) => void): void;
13
+ linkAdditionalProvider(provider: AuthProvider): Promise<unknown>;
14
+ unlinkProvider(provider: AuthProvider): Promise<unknown>;
15
+ private toUserCredentials;
16
+ static convertCredentials<T extends {}>(nativeUserCredential: User, claims: T): UserCredentials<T>;
17
+ registerCredentialProvider(name: string, providerFactory: (singData: SignData) => Promise<UserCredential>): void;
18
+ private registerCredentialProviders;
19
+ private credentialProviders;
20
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,7 @@
1
+ import { CloudFunction, CloudFunctionsService } from 'entropic-bond';
2
+ import { EmulatorConfig } from '../firebase-helper';
3
+ export declare class FirebaseCloudFunctions implements CloudFunctionsService {
4
+ constructor(region?: string, emulator?: Partial<EmulatorConfig>);
5
+ retrieveFunction<P, R>(cloudFunction: string): CloudFunction<P, R>;
6
+ callFunction<P, R>(func: CloudFunction<P, R>, params: P): Promise<R>;
7
+ }
@@ -0,0 +1,6 @@
1
+ import { Persistent } from 'entropic-bond';
2
+ export declare class ParamWrapper extends Persistent {
3
+ constructor(a?: string, b?: number);
4
+ _a: string | undefined;
5
+ _b: number | undefined;
6
+ }
@@ -0,0 +1,10 @@
1
+ import { CloudStorage, UploadControl, UploadProgress } from 'entropic-bond';
2
+ import { EmulatorConfig } from '../firebase-helper';
3
+ export declare class FirebaseCloudStorage extends CloudStorage {
4
+ constructor(emulator?: EmulatorConfig);
5
+ save(id: string, data: Blob | Uint8Array | ArrayBuffer, progress?: UploadProgress): Promise<string>;
6
+ getUrl(reference: string): Promise<string>;
7
+ uploadControl(): UploadControl;
8
+ delete(reference: string): Promise<void>;
9
+ private _uploadTask;
10
+ }
@@ -0,0 +1 @@
1
+ export {};