@entropic-bond/firebase 1.13.2 → 1.13.4

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 (43) 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 +23778 -0
  9. package/lib/entropic-bond-firebase.js.map +1 -0
  10. package/lib/entropic-bond-firebase.umd.cjs +3678 -0
  11. package/lib/entropic-bond-firebase.umd.cjs.map +1 -0
  12. package/lib/firebase-helper.d.ts +38 -0
  13. package/lib/index.d.ts +5 -0
  14. package/lib/mocks/test-user.d.ts +49 -0
  15. package/lib/store/firebase-datasource.d.ts +19 -0
  16. package/lib/store/firebase-datasource.spec.d.ts +1 -0
  17. package/package.json +7 -3
  18. package/.firebaserc +0 -5
  19. package/.github/workflows/release.yml +0 -27
  20. package/CHANGELOG.md +0 -338
  21. package/firebase.json +0 -30
  22. package/firestore.indexes.json +0 -4
  23. package/firestore.rules +0 -8
  24. package/functions/package-lock.json +0 -2344
  25. package/functions/package.json +0 -26
  26. package/functions/src/index.ts +0 -33
  27. package/functions/tsconfig.json +0 -19
  28. package/src/auth/firebase-auth.spec.ts +0 -90
  29. package/src/auth/firebase-auth.ts +0 -212
  30. package/src/cloud-functions/firebase-cloud-functions.spec.ts +0 -47
  31. package/src/cloud-functions/firebase-cloud-functions.ts +0 -25
  32. package/src/cloud-storage/firebase-cloud-storage.spec.ts +0 -135
  33. package/src/cloud-storage/firebase-cloud-storage.ts +0 -67
  34. package/src/firebase-helper.ts +0 -92
  35. package/src/index.ts +0 -5
  36. package/src/mocks/mock-data.json +0 -148
  37. package/src/mocks/test-user.ts +0 -121
  38. package/src/store/firebase-datasource.spec.ts +0 -555
  39. package/src/store/firebase-datasource.ts +0 -146
  40. package/storage.rules +0 -8
  41. package/tsconfig-build.json +0 -7
  42. package/tsconfig.json +0 -30
  43. 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 {};