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