@angular/fire 19.2.0 → 20.0.0-canary.eb99d8e

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 (210) hide show
  1. package/ai/index.d.ts +32 -5
  2. package/analytics/index.d.ts +87 -5
  3. package/app/index.d.ts +36 -5
  4. package/app-check/index.d.ts +33 -5
  5. package/auth/index.d.ts +86 -5
  6. package/auth-guard/index.d.ts +43 -5
  7. package/compat/analytics/index.d.ts +52 -5
  8. package/compat/auth/index.d.ts +58 -5
  9. package/compat/auth-guard/index.d.ts +44 -5
  10. package/compat/database/index.d.ts +107 -3
  11. package/compat/firestore/index.d.ts +450 -3
  12. package/compat/functions/index.d.ts +31 -5
  13. package/compat/index.d.ts +57 -5
  14. package/compat/messaging/index.d.ts +32 -5
  15. package/compat/performance/index.d.ts +43 -5
  16. package/compat/remote-config/index.d.ts +64 -5
  17. package/compat/storage/index.d.ts +104 -3
  18. package/data-connect/index.d.ts +34 -5
  19. package/database/index.d.ts +77 -5
  20. package/fesm2022/angular-fire-ai.mjs +4 -4
  21. package/fesm2022/angular-fire-analytics.mjs +10 -10
  22. package/fesm2022/angular-fire-app-check.mjs +4 -4
  23. package/fesm2022/angular-fire-app.mjs +5 -5
  24. package/fesm2022/angular-fire-auth-guard.mjs +7 -7
  25. package/fesm2022/angular-fire-auth.mjs +4 -4
  26. package/fesm2022/angular-fire-compat-analytics.mjs +14 -14
  27. package/fesm2022/angular-fire-compat-auth-guard.mjs +7 -7
  28. package/fesm2022/angular-fire-compat-auth.mjs +8 -8
  29. package/fesm2022/angular-fire-compat-database.mjs +9 -9
  30. package/fesm2022/angular-fire-compat-firestore.mjs +9 -9
  31. package/fesm2022/angular-fire-compat-functions.mjs +8 -8
  32. package/fesm2022/angular-fire-compat-messaging.mjs +8 -8
  33. package/fesm2022/angular-fire-compat-messaging.mjs.map +1 -1
  34. package/fesm2022/angular-fire-compat-performance.mjs +11 -11
  35. package/fesm2022/angular-fire-compat-remote-config.mjs +8 -8
  36. package/fesm2022/angular-fire-compat-storage.mjs +16 -16
  37. package/fesm2022/angular-fire-compat.mjs +5 -5
  38. package/fesm2022/angular-fire-data-connect.mjs +4 -4
  39. package/fesm2022/angular-fire-database.mjs +4 -4
  40. package/fesm2022/angular-fire-firestore-lite.mjs +4 -4
  41. package/fesm2022/angular-fire-firestore.mjs +4 -4
  42. package/fesm2022/angular-fire-functions.mjs +4 -4
  43. package/fesm2022/angular-fire-messaging.mjs +4 -4
  44. package/fesm2022/angular-fire-performance.mjs +4 -4
  45. package/fesm2022/angular-fire-remote-config.mjs +4 -4
  46. package/fesm2022/angular-fire-storage.mjs +4 -4
  47. package/fesm2022/angular-fire-vertexai.mjs +4 -4
  48. package/fesm2022/angular-fire.mjs +9 -6
  49. package/fesm2022/angular-fire.mjs.map +1 -1
  50. package/firestore/index.d.ts +99 -5
  51. package/firestore/lite/index.d.ts +77 -5
  52. package/functions/index.d.ts +35 -5
  53. package/index.d.ts +34 -3
  54. package/messaging/index.d.ts +33 -5
  55. package/package.json +13 -13
  56. package/performance/index.d.ts +40 -5
  57. package/publish.sh +1 -1
  58. package/remote-config/index.d.ts +48 -5
  59. package/schematics/add/index.js +1 -1
  60. package/schematics/deploy/actions.js +76 -86
  61. package/schematics/deploy/builder.js +166 -176
  62. package/schematics/setup/index.js +147 -162
  63. package/schematics/update/v7/index.js +1 -1
  64. package/storage/index.d.ts +47 -5
  65. package/vertexai/index.d.ts +33 -5
  66. package/ai/ai.d.ts +0 -13
  67. package/ai/ai.module.d.ts +0 -15
  68. package/ai/firebase.d.ts +0 -6
  69. package/ai/public_api.d.ts +0 -3
  70. package/analytics/analytics.d.ts +0 -13
  71. package/analytics/analytics.module.d.ts +0 -17
  72. package/analytics/firebase.d.ts +0 -14
  73. package/analytics/public_api.d.ts +0 -5
  74. package/analytics/screen-tracking.service.d.ts +0 -40
  75. package/analytics/user-tracking.service.d.ts +0 -11
  76. package/app/app.d.ts +0 -12
  77. package/app/app.module.d.ts +0 -14
  78. package/app/firebase.d.ts +0 -10
  79. package/app/public_api.d.ts +0 -3
  80. package/app-check/app-check.d.ts +0 -13
  81. package/app-check/app-check.module.d.ts +0 -15
  82. package/app-check/firebase.d.ts +0 -7
  83. package/app-check/public_api.d.ts +0 -3
  84. package/auth/auth.d.ts +0 -13
  85. package/auth/auth.module.d.ts +0 -15
  86. package/auth/firebase.d.ts +0 -55
  87. package/auth/public_api.d.ts +0 -4
  88. package/auth/rxfire.d.ts +0 -4
  89. package/auth-guard/auth-guard.d.ts +0 -29
  90. package/auth-guard/auth-guard.module.d.ts +0 -7
  91. package/auth-guard/public_api.d.ts +0 -2
  92. package/compat/analytics/analytics.d.ts +0 -22
  93. package/compat/analytics/analytics.module.d.ts +0 -10
  94. package/compat/analytics/base.d.ts +0 -8
  95. package/compat/analytics/public_api.d.ts +0 -4
  96. package/compat/analytics/screen-tracking.service.d.ts +0 -13
  97. package/compat/analytics/user-tracking.service.d.ts +0 -12
  98. package/compat/auth/auth.d.ts +0 -50
  99. package/compat/auth/auth.module.d.ts +0 -7
  100. package/compat/auth/base.d.ts +0 -36
  101. package/compat/auth/public_api.d.ts +0 -3
  102. package/compat/auth-guard/auth-guard.d.ts +0 -31
  103. package/compat/auth-guard/auth-guard.module.d.ts +0 -7
  104. package/compat/auth-guard/public_api.d.ts +0 -2
  105. package/compat/cache.d.ts +0 -1
  106. package/compat/database/database.d.ts +0 -28
  107. package/compat/database/database.module.d.ts +0 -7
  108. package/compat/database/interfaces.d.ts +0 -62
  109. package/compat/database/list/audit-trail.d.ts +0 -3
  110. package/compat/database/list/changes.d.ts +0 -3
  111. package/compat/database/list/create-reference.d.ts +0 -4
  112. package/compat/database/list/data-operation.d.ts +0 -2
  113. package/compat/database/list/remove.d.ts +0 -2
  114. package/compat/database/list/snapshot-changes.d.ts +0 -3
  115. package/compat/database/list/state-changes.d.ts +0 -3
  116. package/compat/database/list/utils.d.ts +0 -1
  117. package/compat/database/object/create-reference.d.ts +0 -4
  118. package/compat/database/object/snapshot-changes.d.ts +0 -3
  119. package/compat/database/observable/fromRef.d.ts +0 -10
  120. package/compat/database/public_api.d.ts +0 -8
  121. package/compat/database/utils.d.ts +0 -14
  122. package/compat/firebase.app.d.ts +0 -6
  123. package/compat/firebase.app.module.d.ts +0 -14
  124. package/compat/firestore/collection/changes.d.ts +0 -22
  125. package/compat/firestore/collection/collection.d.ts +0 -90
  126. package/compat/firestore/collection-group/collection-group.d.ts +0 -65
  127. package/compat/firestore/document/document.d.ts +0 -74
  128. package/compat/firestore/firestore.d.ts +0 -131
  129. package/compat/firestore/firestore.module.d.ts +0 -13
  130. package/compat/firestore/interfaces.d.ts +0 -70
  131. package/compat/firestore/observable/fromRef.d.ts +0 -5
  132. package/compat/firestore/public_api.d.ts +0 -8
  133. package/compat/functions/base.d.ts +0 -5
  134. package/compat/functions/functions.d.ts +0 -21
  135. package/compat/functions/functions.module.d.ts +0 -7
  136. package/compat/functions/public_api.d.ts +0 -3
  137. package/compat/messaging/base.d.ts +0 -6
  138. package/compat/messaging/messaging.d.ts +0 -22
  139. package/compat/messaging/messaging.module.d.ts +0 -7
  140. package/compat/messaging/public_api.d.ts +0 -2
  141. package/compat/performance/base.d.ts +0 -6
  142. package/compat/performance/performance.d.ts +0 -26
  143. package/compat/performance/performance.module.d.ts +0 -9
  144. package/compat/performance/performance.service.d.ts +0 -9
  145. package/compat/performance/public_api.d.ts +0 -3
  146. package/compat/proxy.d.ts +0 -32
  147. package/compat/public_api.d.ts +0 -4
  148. package/compat/remote-config/base.d.ts +0 -17
  149. package/compat/remote-config/interfaces.d.ts +0 -2
  150. package/compat/remote-config/public_api.d.ts +0 -2
  151. package/compat/remote-config/remote-config.d.ts +0 -52
  152. package/compat/remote-config/remote-config.module.d.ts +0 -7
  153. package/compat/storage/interfaces.d.ts +0 -9
  154. package/compat/storage/observable/fromTask.d.ts +0 -3
  155. package/compat/storage/pipes/storageUrl.pipe.d.ts +0 -21
  156. package/compat/storage/public_api.d.ts +0 -6
  157. package/compat/storage/ref.d.ts +0 -20
  158. package/compat/storage/storage.d.ts +0 -31
  159. package/compat/storage/storage.module.d.ts +0 -8
  160. package/compat/storage/task.d.ts +0 -18
  161. package/core.d.ts +0 -6
  162. package/data-connect/data-connect.d.ts +0 -9
  163. package/data-connect/data-connect.module.d.ts +0 -13
  164. package/data-connect/firebase.d.ts +0 -12
  165. package/data-connect/public_api.d.ts +0 -3
  166. package/database/database.d.ts +0 -13
  167. package/database/database.module.d.ts +0 -15
  168. package/database/firebase.d.ts +0 -40
  169. package/database/public_api.d.ts +0 -4
  170. package/database/rxfire.d.ts +0 -10
  171. package/firestore/firebase.d.ts +0 -60
  172. package/firestore/firestore.d.ts +0 -13
  173. package/firestore/firestore.module.d.ts +0 -15
  174. package/firestore/lite/firebase.d.ts +0 -41
  175. package/firestore/lite/lite.d.ts +0 -13
  176. package/firestore/lite/lite.module.d.ts +0 -15
  177. package/firestore/lite/public_api.d.ts +0 -4
  178. package/firestore/lite/rxfire.d.ts +0 -9
  179. package/firestore/public_api.d.ts +0 -4
  180. package/firestore/rxfire.d.ts +0 -12
  181. package/functions/firebase.d.ts +0 -6
  182. package/functions/functions.d.ts +0 -13
  183. package/functions/functions.module.d.ts +0 -15
  184. package/functions/public_api.d.ts +0 -4
  185. package/functions/rxfire.d.ts +0 -2
  186. package/messaging/firebase.d.ts +0 -7
  187. package/messaging/messaging.d.ts +0 -13
  188. package/messaging/messaging.module.d.ts +0 -14
  189. package/messaging/public_api.d.ts +0 -3
  190. package/performance/firebase.d.ts +0 -5
  191. package/performance/performance.d.ts +0 -13
  192. package/performance/performance.module.d.ts +0 -15
  193. package/performance/public_api.d.ts +0 -4
  194. package/performance/rxfire.d.ts +0 -8
  195. package/public_api.d.ts +0 -2
  196. package/remote-config/firebase.d.ts +0 -15
  197. package/remote-config/public_api.d.ts +0 -4
  198. package/remote-config/remote-config.d.ts +0 -13
  199. package/remote-config/remote-config.module.d.ts +0 -15
  200. package/remote-config/rxfire.d.ts +0 -6
  201. package/storage/firebase.d.ts +0 -17
  202. package/storage/public_api.d.ts +0 -4
  203. package/storage/rxfire.d.ts +0 -3
  204. package/storage/storage.d.ts +0 -13
  205. package/storage/storage.module.d.ts +0 -15
  206. package/vertexai/firebase.d.ts +0 -6
  207. package/vertexai/public_api.d.ts +0 -3
  208. package/vertexai/vertexai.d.ts +0 -13
  209. package/vertexai/vertexai.module.d.ts +0 -15
  210. package/zones.d.ts +0 -26
package/ai/index.d.ts CHANGED
@@ -1,5 +1,32 @@
1
- /**
2
- * Generated bundle index. Do not edit.
3
- */
4
- /// <amd-module name="@angular/fire/ai" />
5
- export * from './public_api';
1
+ import * as rxjs from 'rxjs';
2
+ import { AI as AI$1, getAI as getAI$1, getGenerativeModel as getGenerativeModel$1, getImagenModel as getImagenModel$1, getVertexAI as getVertexAI$1 } from 'firebase/ai';
3
+ export * from 'firebase/ai';
4
+ import * as i0 from '@angular/core';
5
+ import { Injector, EnvironmentProviders } from '@angular/core';
6
+
7
+ interface AI extends AI$1 {
8
+ }
9
+ declare class AI {
10
+ constructor(ai: AI$1);
11
+ }
12
+ interface AIInstances extends Array<AI$1> {
13
+ }
14
+ declare class AIInstances {
15
+ constructor();
16
+ }
17
+ declare const AIInstance$: rxjs.Observable<AI$1>;
18
+
19
+ declare class AIModule {
20
+ constructor();
21
+ static ɵfac: i0.ɵɵFactoryDeclaration<AIModule, never>;
22
+ static ɵmod: i0.ɵɵNgModuleDeclaration<AIModule, never, never, never>;
23
+ static ɵinj: i0.ɵɵInjectorDeclaration<AIModule>;
24
+ }
25
+ declare function provideAI(fn: (injector: Injector) => AI$1, ...deps: any[]): EnvironmentProviders;
26
+
27
+ declare const getAI: typeof getAI$1;
28
+ declare const getGenerativeModel: typeof getGenerativeModel$1;
29
+ declare const getImagenModel: typeof getImagenModel$1;
30
+ declare const getVertexAI: typeof getVertexAI$1;
31
+
32
+ export { AI, AIInstance$, AIInstances, AIModule, getAI, getGenerativeModel, getImagenModel, getVertexAI, provideAI };
@@ -1,5 +1,87 @@
1
- /**
2
- * Generated bundle index. Do not edit.
3
- */
4
- /// <amd-module name="@angular/fire/analytics" />
5
- export * from './public_api';
1
+ import * as rxjs from 'rxjs';
2
+ import { Observable } from 'rxjs';
3
+ import { Analytics as Analytics$1, getAnalytics as getAnalytics$1, getGoogleAnalyticsClientId as getGoogleAnalyticsClientId$1, initializeAnalytics as initializeAnalytics$1, isSupported as isSupported$1, logEvent as logEvent$1, setAnalyticsCollectionEnabled as setAnalyticsCollectionEnabled$1, setConsent as setConsent$1, setCurrentScreen as setCurrentScreen$1, setDefaultEventParameters as setDefaultEventParameters$1, setUserId as setUserId$1, setUserProperties as setUserProperties$1, settings as settings$1 } from 'firebase/analytics';
4
+ export * from 'firebase/analytics';
5
+ import * as i0 from '@angular/core';
6
+ import { OnDestroy, NgZone, Injector, ComponentFactoryResolver, EnvironmentProviders } from '@angular/core';
7
+ import { Title } from '@angular/platform-browser';
8
+ import { Router } from '@angular/router';
9
+ import { Auth } from '@angular/fire/auth';
10
+
11
+ interface Analytics extends Analytics$1 {
12
+ }
13
+ declare class Analytics {
14
+ constructor(analytics: Analytics$1);
15
+ }
16
+ interface AnalyticsInstances extends Array<Analytics$1> {
17
+ }
18
+ declare class AnalyticsInstances {
19
+ constructor();
20
+ }
21
+ declare const analyticInstance$: rxjs.Observable<Analytics$1>;
22
+
23
+ declare class UserTrackingService implements OnDestroy {
24
+ readonly initialized: Promise<void>;
25
+ private disposables;
26
+ constructor(auth: Auth, zone: NgZone, injector: Injector);
27
+ ngOnDestroy(): void;
28
+ static ɵfac: i0.ɵɵFactoryDeclaration<UserTrackingService, never>;
29
+ static ɵprov: i0.ɵɵInjectableDeclaration<UserTrackingService>;
30
+ }
31
+
32
+ declare const FIREBASE_EVENT_ORIGIN_KEY = "firebase_event_origin";
33
+ declare const FIREBASE_PREVIOUS_SCREEN_CLASS_KEY = "firebase_previous_class";
34
+ declare const FIREBASE_PREVIOUS_SCREEN_INSTANCE_ID_KEY = "firebase_previous_id";
35
+ declare const FIREBASE_PREVIOUS_SCREEN_NAME_KEY = "firebase_previous_screen";
36
+ declare const FIREBASE_SCREEN_CLASS_KEY = "firebase_screen_class";
37
+ declare const FIREBASE_SCREEN_INSTANCE_ID_KEY = "firebase_screen_id";
38
+ declare const FIREBASE_SCREEN_NAME_KEY = "firebase_screen";
39
+ declare const OUTLET_KEY = "outlet";
40
+ declare const PAGE_PATH_KEY = "page_path";
41
+ declare const PAGE_TITLE_KEY = "page_title";
42
+ declare const SCREEN_CLASS_KEY = "screen_class";
43
+ declare const SCREEN_NAME_KEY = "screen_name";
44
+ declare const ɵscreenViewEvent: (router: Router, title: Title | null, componentFactoryResolver: ComponentFactoryResolver) => Observable<{
45
+ [SCREEN_NAME_KEY]: string;
46
+ [PAGE_PATH_KEY]: string;
47
+ [FIREBASE_EVENT_ORIGIN_KEY]: "auto";
48
+ [FIREBASE_SCREEN_NAME_KEY]: string;
49
+ [OUTLET_KEY]: string;
50
+ [PAGE_TITLE_KEY]?: string;
51
+ [SCREEN_CLASS_KEY]: string;
52
+ [FIREBASE_SCREEN_CLASS_KEY]: string;
53
+ [FIREBASE_SCREEN_INSTANCE_ID_KEY]: number;
54
+ [FIREBASE_PREVIOUS_SCREEN_CLASS_KEY]: string;
55
+ [FIREBASE_PREVIOUS_SCREEN_NAME_KEY]: string;
56
+ [FIREBASE_PREVIOUS_SCREEN_INSTANCE_ID_KEY]: number;
57
+ }>;
58
+ declare class ScreenTrackingService implements OnDestroy {
59
+ private disposable;
60
+ constructor(router: Router, title: Title, componentFactoryResolver: ComponentFactoryResolver, zone: NgZone, userTrackingService: UserTrackingService, injector: Injector);
61
+ ngOnDestroy(): void;
62
+ static ɵfac: i0.ɵɵFactoryDeclaration<ScreenTrackingService, [{ optional: true; }, { optional: true; }, null, null, { optional: true; }, null]>;
63
+ static ɵprov: i0.ɵɵInjectableDeclaration<ScreenTrackingService>;
64
+ }
65
+
66
+ declare class AnalyticsModule {
67
+ constructor(_screenTrackingService: ScreenTrackingService, _userTrackingService: UserTrackingService);
68
+ static ɵfac: i0.ɵɵFactoryDeclaration<AnalyticsModule, [{ optional: true; }, { optional: true; }]>;
69
+ static ɵmod: i0.ɵɵNgModuleDeclaration<AnalyticsModule, never, never, never>;
70
+ static ɵinj: i0.ɵɵInjectorDeclaration<AnalyticsModule>;
71
+ }
72
+ declare function provideAnalytics(fn: (injector: Injector) => Analytics$1, ...deps: any[]): EnvironmentProviders;
73
+
74
+ declare const getAnalytics: typeof getAnalytics$1;
75
+ declare const getGoogleAnalyticsClientId: typeof getGoogleAnalyticsClientId$1;
76
+ declare const initializeAnalytics: typeof initializeAnalytics$1;
77
+ declare const isSupported: typeof isSupported$1;
78
+ declare const logEvent: typeof logEvent$1;
79
+ declare const setAnalyticsCollectionEnabled: typeof setAnalyticsCollectionEnabled$1;
80
+ declare const setConsent: typeof setConsent$1;
81
+ declare const setCurrentScreen: typeof setCurrentScreen$1;
82
+ declare const setDefaultEventParameters: typeof setDefaultEventParameters$1;
83
+ declare const setUserId: typeof setUserId$1;
84
+ declare const setUserProperties: typeof setUserProperties$1;
85
+ declare const settings: typeof settings$1;
86
+
87
+ export { Analytics, AnalyticsInstances, AnalyticsModule, ScreenTrackingService, UserTrackingService, analyticInstance$, getAnalytics, getGoogleAnalyticsClientId, initializeAnalytics, isSupported, logEvent, provideAnalytics, setAnalyticsCollectionEnabled, setConsent, setCurrentScreen, setDefaultEventParameters, setUserId, setUserProperties, settings, ɵscreenViewEvent };
package/app/index.d.ts CHANGED
@@ -1,5 +1,36 @@
1
- /**
2
- * Generated bundle index. Do not edit.
3
- */
4
- /// <amd-module name="@angular/fire/app" />
5
- export * from './public_api';
1
+ import * as rxjs from 'rxjs';
2
+ import { FirebaseApp as FirebaseApp$1, deleteApp as deleteApp$1, getApp as getApp$1, getApps as getApps$1, initializeApp as initializeApp$1, initializeServerApp as initializeServerApp$1, onLog as onLog$1, registerVersion as registerVersion$1, setLogLevel as setLogLevel$1 } from 'firebase/app';
3
+ export * from 'firebase/app';
4
+ import * as i0 from '@angular/core';
5
+ import { Injector, EnvironmentProviders } from '@angular/core';
6
+
7
+ interface FirebaseApp extends FirebaseApp$1 {
8
+ }
9
+ declare class FirebaseApp {
10
+ constructor(app: FirebaseApp$1);
11
+ }
12
+ interface FirebaseApps extends Array<FirebaseApp$1> {
13
+ }
14
+ declare class FirebaseApps {
15
+ constructor();
16
+ }
17
+ declare const firebaseApp$: rxjs.Observable<FirebaseApp$1>;
18
+
19
+ declare class FirebaseAppModule {
20
+ constructor(platformId: Object);
21
+ static ɵfac: i0.ɵɵFactoryDeclaration<FirebaseAppModule, never>;
22
+ static ɵmod: i0.ɵɵNgModuleDeclaration<FirebaseAppModule, never, never, never>;
23
+ static ɵinj: i0.ɵɵInjectorDeclaration<FirebaseAppModule>;
24
+ }
25
+ declare function provideFirebaseApp(fn: (injector: Injector) => FirebaseApp$1, ...deps: any[]): EnvironmentProviders;
26
+
27
+ declare const deleteApp: typeof deleteApp$1;
28
+ declare const getApp: typeof getApp$1;
29
+ declare const getApps: typeof getApps$1;
30
+ declare const initializeApp: typeof initializeApp$1;
31
+ declare const initializeServerApp: typeof initializeServerApp$1;
32
+ declare const onLog: typeof onLog$1;
33
+ declare const registerVersion: typeof registerVersion$1;
34
+ declare const setLogLevel: typeof setLogLevel$1;
35
+
36
+ export { FirebaseApp, FirebaseAppModule, FirebaseApps, deleteApp, firebaseApp$, getApp, getApps, initializeApp, initializeServerApp, onLog, provideFirebaseApp, registerVersion, setLogLevel };
@@ -1,5 +1,33 @@
1
- /**
2
- * Generated bundle index. Do not edit.
3
- */
4
- /// <amd-module name="@angular/fire/app-check" />
5
- export * from './public_api';
1
+ import * as rxjs from 'rxjs';
2
+ import { AppCheck as AppCheck$1, getLimitedUseToken as getLimitedUseToken$1, getToken as getToken$1, initializeAppCheck as initializeAppCheck$1, onTokenChanged as onTokenChanged$1, setTokenAutoRefreshEnabled as setTokenAutoRefreshEnabled$1 } from 'firebase/app-check';
3
+ export * from 'firebase/app-check';
4
+ import * as i0 from '@angular/core';
5
+ import { Injector, EnvironmentProviders } from '@angular/core';
6
+
7
+ interface AppCheck extends AppCheck$1 {
8
+ }
9
+ declare class AppCheck {
10
+ constructor(appCheck: AppCheck$1);
11
+ }
12
+ interface AppCheckInstances extends Array<AppCheck> {
13
+ }
14
+ declare class AppCheckInstances {
15
+ constructor();
16
+ }
17
+ declare const appCheckInstance$: rxjs.Observable<AppCheck$1>;
18
+
19
+ declare class AppCheckModule {
20
+ constructor();
21
+ static ɵfac: i0.ɵɵFactoryDeclaration<AppCheckModule, never>;
22
+ static ɵmod: i0.ɵɵNgModuleDeclaration<AppCheckModule, never, never, never>;
23
+ static ɵinj: i0.ɵɵInjectorDeclaration<AppCheckModule>;
24
+ }
25
+ declare function provideAppCheck(fn: (injector: Injector) => AppCheck$1, ...deps: any[]): EnvironmentProviders;
26
+
27
+ declare const getLimitedUseToken: typeof getLimitedUseToken$1;
28
+ declare const getToken: typeof getToken$1;
29
+ declare const initializeAppCheck: typeof initializeAppCheck$1;
30
+ declare const onTokenChanged: typeof onTokenChanged$1;
31
+ declare const setTokenAutoRefreshEnabled: typeof setTokenAutoRefreshEnabled$1;
32
+
33
+ export { AppCheck, AppCheckInstances, AppCheckModule, appCheckInstance$, getLimitedUseToken, getToken, initializeAppCheck, onTokenChanged, provideAppCheck, setTokenAutoRefreshEnabled };
package/auth/index.d.ts CHANGED
@@ -1,5 +1,86 @@
1
- /**
2
- * Generated bundle index. Do not edit.
3
- */
4
- /// <amd-module name="@angular/fire/auth" />
5
- export * from './public_api';
1
+ import * as rxjs from 'rxjs';
2
+ import { Auth as Auth$1, applyActionCode as applyActionCode$1, beforeAuthStateChanged as beforeAuthStateChanged$1, checkActionCode as checkActionCode$1, confirmPasswordReset as confirmPasswordReset$1, connectAuthEmulator as connectAuthEmulator$1, createUserWithEmailAndPassword as createUserWithEmailAndPassword$1, deleteUser as deleteUser$1, fetchSignInMethodsForEmail as fetchSignInMethodsForEmail$1, getAdditionalUserInfo as getAdditionalUserInfo$1, getAuth as getAuth$1, getIdToken as getIdToken$1, getIdTokenResult as getIdTokenResult$1, getMultiFactorResolver as getMultiFactorResolver$1, getRedirectResult as getRedirectResult$1, initializeAuth as initializeAuth$1, initializeRecaptchaConfig as initializeRecaptchaConfig$1, isSignInWithEmailLink as isSignInWithEmailLink$1, linkWithCredential as linkWithCredential$1, linkWithPhoneNumber as linkWithPhoneNumber$1, linkWithPopup as linkWithPopup$1, linkWithRedirect as linkWithRedirect$1, onAuthStateChanged as onAuthStateChanged$1, onIdTokenChanged as onIdTokenChanged$1, parseActionCodeURL as parseActionCodeURL$1, reauthenticateWithCredential as reauthenticateWithCredential$1, reauthenticateWithPhoneNumber as reauthenticateWithPhoneNumber$1, reauthenticateWithPopup as reauthenticateWithPopup$1, reauthenticateWithRedirect as reauthenticateWithRedirect$1, reload as reload$1, revokeAccessToken as revokeAccessToken$1, sendEmailVerification as sendEmailVerification$1, sendPasswordResetEmail as sendPasswordResetEmail$1, sendSignInLinkToEmail as sendSignInLinkToEmail$1, setPersistence as setPersistence$1, signInAnonymously as signInAnonymously$1, signInWithCredential as signInWithCredential$1, signInWithCustomToken as signInWithCustomToken$1, signInWithEmailAndPassword as signInWithEmailAndPassword$1, signInWithEmailLink as signInWithEmailLink$1, signInWithPhoneNumber as signInWithPhoneNumber$1, signInWithPopup as signInWithPopup$1, signInWithRedirect as signInWithRedirect$1, signOut as signOut$1, unlink as unlink$1, updateCurrentUser as updateCurrentUser$1, updateEmail as updateEmail$1, updatePassword as updatePassword$1, updatePhoneNumber as updatePhoneNumber$1, updateProfile as updateProfile$1, useDeviceLanguage as useDeviceLanguage$1, validatePassword as validatePassword$1, verifyBeforeUpdateEmail as verifyBeforeUpdateEmail$1, verifyPasswordResetCode as verifyPasswordResetCode$1 } from 'firebase/auth';
3
+ export * from 'firebase/auth';
4
+ import * as i0 from '@angular/core';
5
+ import { Injector, EnvironmentProviders } from '@angular/core';
6
+ import { authState as authState$1, idToken as idToken$1, user as user$1 } from 'rxfire/auth';
7
+
8
+ interface Auth extends Auth$1 {
9
+ }
10
+ declare class Auth {
11
+ constructor(auth: Auth$1);
12
+ }
13
+ interface AuthInstances extends Array<Auth$1> {
14
+ }
15
+ declare class AuthInstances {
16
+ constructor();
17
+ }
18
+ declare const authInstance$: rxjs.Observable<Auth$1>;
19
+
20
+ declare class AuthModule {
21
+ constructor();
22
+ static ɵfac: i0.ɵɵFactoryDeclaration<AuthModule, never>;
23
+ static ɵmod: i0.ɵɵNgModuleDeclaration<AuthModule, never, never, never>;
24
+ static ɵinj: i0.ɵɵInjectorDeclaration<AuthModule>;
25
+ }
26
+ declare function provideAuth(fn: (injector: Injector) => Auth$1, ...deps: any[]): EnvironmentProviders;
27
+
28
+ declare const authState: typeof authState$1;
29
+ declare const idToken: typeof idToken$1;
30
+ declare const user: typeof user$1;
31
+
32
+ declare const applyActionCode: typeof applyActionCode$1;
33
+ declare const beforeAuthStateChanged: typeof beforeAuthStateChanged$1;
34
+ declare const checkActionCode: typeof checkActionCode$1;
35
+ declare const confirmPasswordReset: typeof confirmPasswordReset$1;
36
+ declare const connectAuthEmulator: typeof connectAuthEmulator$1;
37
+ declare const createUserWithEmailAndPassword: typeof createUserWithEmailAndPassword$1;
38
+ declare const deleteUser: typeof deleteUser$1;
39
+ declare const fetchSignInMethodsForEmail: typeof fetchSignInMethodsForEmail$1;
40
+ declare const getAdditionalUserInfo: typeof getAdditionalUserInfo$1;
41
+ declare const getAuth: typeof getAuth$1;
42
+ declare const getIdToken: typeof getIdToken$1;
43
+ declare const getIdTokenResult: typeof getIdTokenResult$1;
44
+ declare const getMultiFactorResolver: typeof getMultiFactorResolver$1;
45
+ declare const getRedirectResult: typeof getRedirectResult$1;
46
+ declare const initializeAuth: typeof initializeAuth$1;
47
+ declare const initializeRecaptchaConfig: typeof initializeRecaptchaConfig$1;
48
+ declare const isSignInWithEmailLink: typeof isSignInWithEmailLink$1;
49
+ declare const linkWithCredential: typeof linkWithCredential$1;
50
+ declare const linkWithPhoneNumber: typeof linkWithPhoneNumber$1;
51
+ declare const linkWithPopup: typeof linkWithPopup$1;
52
+ declare const linkWithRedirect: typeof linkWithRedirect$1;
53
+ declare const onAuthStateChanged: typeof onAuthStateChanged$1;
54
+ declare const onIdTokenChanged: typeof onIdTokenChanged$1;
55
+ declare const parseActionCodeURL: typeof parseActionCodeURL$1;
56
+ declare const reauthenticateWithCredential: typeof reauthenticateWithCredential$1;
57
+ declare const reauthenticateWithPhoneNumber: typeof reauthenticateWithPhoneNumber$1;
58
+ declare const reauthenticateWithPopup: typeof reauthenticateWithPopup$1;
59
+ declare const reauthenticateWithRedirect: typeof reauthenticateWithRedirect$1;
60
+ declare const reload: typeof reload$1;
61
+ declare const revokeAccessToken: typeof revokeAccessToken$1;
62
+ declare const sendEmailVerification: typeof sendEmailVerification$1;
63
+ declare const sendPasswordResetEmail: typeof sendPasswordResetEmail$1;
64
+ declare const sendSignInLinkToEmail: typeof sendSignInLinkToEmail$1;
65
+ declare const setPersistence: typeof setPersistence$1;
66
+ declare const signInAnonymously: typeof signInAnonymously$1;
67
+ declare const signInWithCredential: typeof signInWithCredential$1;
68
+ declare const signInWithCustomToken: typeof signInWithCustomToken$1;
69
+ declare const signInWithEmailAndPassword: typeof signInWithEmailAndPassword$1;
70
+ declare const signInWithEmailLink: typeof signInWithEmailLink$1;
71
+ declare const signInWithPhoneNumber: typeof signInWithPhoneNumber$1;
72
+ declare const signInWithPopup: typeof signInWithPopup$1;
73
+ declare const signInWithRedirect: typeof signInWithRedirect$1;
74
+ declare const signOut: typeof signOut$1;
75
+ declare const unlink: typeof unlink$1;
76
+ declare const updateCurrentUser: typeof updateCurrentUser$1;
77
+ declare const updateEmail: typeof updateEmail$1;
78
+ declare const updatePassword: typeof updatePassword$1;
79
+ declare const updatePhoneNumber: typeof updatePhoneNumber$1;
80
+ declare const updateProfile: typeof updateProfile$1;
81
+ declare const useDeviceLanguage: typeof useDeviceLanguage$1;
82
+ declare const validatePassword: typeof validatePassword$1;
83
+ declare const verifyBeforeUpdateEmail: typeof verifyBeforeUpdateEmail$1;
84
+ declare const verifyPasswordResetCode: typeof verifyPasswordResetCode$1;
85
+
86
+ export { Auth, AuthInstances, AuthModule, applyActionCode, authInstance$, authState, beforeAuthStateChanged, checkActionCode, confirmPasswordReset, connectAuthEmulator, createUserWithEmailAndPassword, deleteUser, fetchSignInMethodsForEmail, getAdditionalUserInfo, getAuth, getIdToken, getIdTokenResult, getMultiFactorResolver, getRedirectResult, idToken, initializeAuth, initializeRecaptchaConfig, isSignInWithEmailLink, linkWithCredential, linkWithPhoneNumber, linkWithPopup, linkWithRedirect, onAuthStateChanged, onIdTokenChanged, parseActionCodeURL, provideAuth, reauthenticateWithCredential, reauthenticateWithPhoneNumber, reauthenticateWithPopup, reauthenticateWithRedirect, reload, revokeAccessToken, sendEmailVerification, sendPasswordResetEmail, sendSignInLinkToEmail, setPersistence, signInAnonymously, signInWithCredential, signInWithCustomToken, signInWithEmailAndPassword, signInWithEmailLink, signInWithPhoneNumber, signInWithPopup, signInWithRedirect, signOut, unlink, updateCurrentUser, updateEmail, updatePassword, updatePhoneNumber, updateProfile, useDeviceLanguage, user, validatePassword, verifyBeforeUpdateEmail, verifyPasswordResetCode };
@@ -1,5 +1,43 @@
1
- /**
2
- * Generated bundle index. Do not edit.
3
- */
4
- /// <amd-module name="@angular/fire/auth-guard" />
5
- export * from './public_api';
1
+ import * as rxjs from 'rxjs';
2
+ import { UnaryFunction, Observable } from 'rxjs';
3
+ import * as _firebase_auth from '@firebase/auth';
4
+ import * as _angular_router from '@angular/router';
5
+ import { ActivatedRouteSnapshot, RouterStateSnapshot, CanActivate, Router } from '@angular/router';
6
+ import { Auth } from '@angular/fire/auth';
7
+ import { User } from 'firebase/auth';
8
+ import * as i0 from '@angular/core';
9
+
10
+ type AuthPipeGenerator = (next: ActivatedRouteSnapshot, state: RouterStateSnapshot) => AuthPipe;
11
+ type AuthPipe = UnaryFunction<Observable<User | null>, Observable<boolean | string | any[]>>;
12
+ declare const loggedIn: AuthPipe;
13
+ declare class AuthGuard implements CanActivate {
14
+ private router;
15
+ private auth;
16
+ constructor(router: Router, auth: Auth);
17
+ canActivate: (next: ActivatedRouteSnapshot, state: RouterStateSnapshot) => Observable<boolean | _angular_router.UrlTree>;
18
+ static ɵfac: i0.ɵɵFactoryDeclaration<AuthGuard, never>;
19
+ static ɵprov: i0.ɵɵInjectableDeclaration<AuthGuard>;
20
+ }
21
+ declare const canActivate: (pipe: AuthPipeGenerator) => {
22
+ canActivate: (typeof AuthGuard)[];
23
+ data: {
24
+ authGuardPipe: AuthPipeGenerator;
25
+ };
26
+ };
27
+ declare const isNotAnonymous: AuthPipe;
28
+ declare const idTokenResult: rxjs.OperatorFunction<User, _firebase_auth.IdTokenResult>;
29
+ declare const emailVerified: AuthPipe;
30
+ declare const customClaims: UnaryFunction<Observable<User>, Observable<any[] | _firebase_auth.ParsedToken>>;
31
+ declare const hasCustomClaim: (claim: string) => AuthPipe;
32
+ declare const redirectUnauthorizedTo: (redirect: string | any[]) => AuthPipe;
33
+ declare const redirectLoggedInTo: (redirect: string | any[]) => AuthPipe;
34
+
35
+ declare class AuthGuardModule {
36
+ constructor();
37
+ static ɵfac: i0.ɵɵFactoryDeclaration<AuthGuardModule, never>;
38
+ static ɵmod: i0.ɵɵNgModuleDeclaration<AuthGuardModule, never, never, never>;
39
+ static ɵinj: i0.ɵɵInjectorDeclaration<AuthGuardModule>;
40
+ }
41
+
42
+ export { AuthGuard, AuthGuardModule, canActivate, customClaims, emailVerified, hasCustomClaim, idTokenResult, isNotAnonymous, loggedIn, redirectLoggedInTo, redirectUnauthorizedTo };
43
+ export type { AuthPipe, AuthPipeGenerator };
@@ -1,5 +1,52 @@
1
- /**
2
- * Generated bundle index. Do not edit.
3
- */
4
- /// <amd-module name="@angular/fire/compat/analytics" />
5
- export * from './public_api';
1
+ import * as i0 from '@angular/core';
2
+ import { InjectionToken, NgZone, OnDestroy, ComponentFactoryResolver } from '@angular/core';
3
+ import { ɵAngularFireSchedulers as _AngularFireSchedulers } from '@angular/fire';
4
+ import { ɵPromiseProxy as _PromiseProxy, FirebaseApp } from '@angular/fire/compat';
5
+ import firebase from 'firebase/compat/app';
6
+ import { Title } from '@angular/platform-browser';
7
+ import { Router } from '@angular/router';
8
+ import { AngularFireAuth } from '@angular/fire/compat/auth';
9
+
10
+ type Config = Record<string, any>;
11
+ declare const COLLECTION_ENABLED: InjectionToken<boolean>;
12
+ declare const APP_VERSION: InjectionToken<string>;
13
+ declare const APP_NAME: InjectionToken<string>;
14
+ declare const DEBUG_MODE: InjectionToken<boolean>;
15
+ declare const CONFIG: InjectionToken<Config>;
16
+ interface AngularFireAnalytics extends _PromiseProxy<firebase.analytics.Analytics> {
17
+ }
18
+ declare class AngularFireAnalytics {
19
+ private measurementId;
20
+ private analyticsInitialized;
21
+ updateConfig(config: Config): Promise<void>;
22
+ constructor(app: FirebaseApp, analyticsCollectionEnabled: boolean | null, providedAppVersion: string | null, providedAppName: string | null, debugModeEnabled: boolean | null, providedConfig: Config | null, platformId: Object, zone: NgZone, schedulers: _AngularFireSchedulers);
23
+ static ɵfac: i0.ɵɵFactoryDeclaration<AngularFireAnalytics, [null, { optional: true; }, { optional: true; }, { optional: true; }, { optional: true; }, { optional: true; }, null, null, null]>;
24
+ static ɵprov: i0.ɵɵInjectableDeclaration<AngularFireAnalytics>;
25
+ }
26
+
27
+ declare class UserTrackingService implements OnDestroy {
28
+ initialized: Promise<void>;
29
+ private disposables;
30
+ constructor(analytics: AngularFireAnalytics, platformId: Object, auth: AngularFireAuth, zone: NgZone);
31
+ ngOnDestroy(): void;
32
+ static ɵfac: i0.ɵɵFactoryDeclaration<UserTrackingService, never>;
33
+ static ɵprov: i0.ɵɵInjectableDeclaration<UserTrackingService>;
34
+ }
35
+
36
+ declare class ScreenTrackingService implements OnDestroy {
37
+ private disposable;
38
+ constructor(analytics: AngularFireAnalytics, router: Router, title: Title, componentFactoryResolver: ComponentFactoryResolver, zone: NgZone, userTrackingService: UserTrackingService);
39
+ ngOnDestroy(): void;
40
+ static ɵfac: i0.ɵɵFactoryDeclaration<ScreenTrackingService, [null, { optional: true; }, { optional: true; }, null, null, { optional: true; }]>;
41
+ static ɵprov: i0.ɵɵInjectableDeclaration<ScreenTrackingService>;
42
+ }
43
+
44
+ declare class AngularFireAnalyticsModule {
45
+ constructor(analytics: AngularFireAnalytics, screenTracking: ScreenTrackingService, userTracking: UserTrackingService);
46
+ static ɵfac: i0.ɵɵFactoryDeclaration<AngularFireAnalyticsModule, [null, { optional: true; }, { optional: true; }]>;
47
+ static ɵmod: i0.ɵɵNgModuleDeclaration<AngularFireAnalyticsModule, never, never, never>;
48
+ static ɵinj: i0.ɵɵInjectorDeclaration<AngularFireAnalyticsModule>;
49
+ }
50
+
51
+ export { APP_NAME, APP_VERSION, AngularFireAnalytics, AngularFireAnalyticsModule, COLLECTION_ENABLED, CONFIG, DEBUG_MODE, ScreenTrackingService, UserTrackingService };
52
+ export type { Config };
@@ -1,5 +1,58 @@
1
- /**
2
- * Generated bundle index. Do not edit.
3
- */
4
- /// <amd-module name="@angular/fire/compat/auth" />
5
- export * from './public_api';
1
+ import * as i0 from '@angular/core';
2
+ import { NgZone, InjectionToken } from '@angular/core';
3
+ import { ɵAngularFireSchedulers as _AngularFireSchedulers } from '@angular/fire';
4
+ import { AppCheckInstances } from '@angular/fire/app-check';
5
+ import { ɵPromiseProxy as _PromiseProxy, FirebaseApp } from '@angular/fire/compat';
6
+ import { FirebaseOptions } from 'firebase/app';
7
+ import firebase from 'firebase/compat/app';
8
+ import { Observable } from 'rxjs';
9
+
10
+ type UseEmulatorArguments = Parameters<firebase.auth.Auth['useEmulator']>;
11
+ declare const USE_EMULATOR: InjectionToken<[url: string]>;
12
+ declare const SETTINGS: InjectionToken<firebase.auth.AuthSettings>;
13
+ declare const TENANT_ID: InjectionToken<string>;
14
+ declare const LANGUAGE_CODE: InjectionToken<string>;
15
+ declare const USE_DEVICE_LANGUAGE: InjectionToken<boolean>;
16
+ declare const PERSISTENCE: InjectionToken<string>;
17
+ declare const ɵauthFactory: (app: FirebaseApp, zone: NgZone, useEmulator: UseEmulatorArguments | null, tenantId: string, languageCode: string | null, useDeviceLanguage: boolean | null, settings: firebase.auth.AuthSettings | null, persistence: string | null) => firebase.auth.Auth;
18
+ interface AngularFireAuth extends _PromiseProxy<firebase.auth.Auth> {
19
+ }
20
+ declare class AngularFireAuth {
21
+ private readonly injector;
22
+ /**
23
+ * Observable of authentication state; as of Firebase 4.0 this is only triggered via sign-in/out
24
+ */
25
+ readonly authState: Observable<firebase.User | null>;
26
+ /**
27
+ * Observable of the currently signed-in user's JWT token used to identify the user to a Firebase service (or null).
28
+ */
29
+ readonly idToken: Observable<string | null>;
30
+ /**
31
+ * Observable of the currently signed-in user (or null).
32
+ */
33
+ readonly user: Observable<firebase.User | null>;
34
+ /**
35
+ * Observable of the currently signed-in user's IdTokenResult object which contains the ID token JWT string and other
36
+ * helper properties for getting different data associated with the token as well as all the decoded payload claims
37
+ * (or null).
38
+ */
39
+ readonly idTokenResult: Observable<firebase.auth.IdTokenResult | null>;
40
+ /**
41
+ * Observable of the currently signed-in user's credential, or null
42
+ */
43
+ readonly credential: Observable<Required<firebase.auth.UserCredential> | null>;
44
+ constructor(options: FirebaseOptions, name: string | null | undefined, platformId: Object, zone: NgZone, schedulers: _AngularFireSchedulers, useEmulator: any, // can't use the tuple here
45
+ settings: any, // can't use firebase.auth.AuthSettings here
46
+ tenantId: string | null, languageCode: string | null, useDeviceLanguage: boolean | null, persistence: string | null, _appCheckInstances: AppCheckInstances);
47
+ static ɵfac: i0.ɵɵFactoryDeclaration<AngularFireAuth, [null, { optional: true; }, null, null, null, { optional: true; }, { optional: true; }, { optional: true; }, { optional: true; }, { optional: true; }, { optional: true; }, { optional: true; }]>;
48
+ static ɵprov: i0.ɵɵInjectableDeclaration<AngularFireAuth>;
49
+ }
50
+
51
+ declare class AngularFireAuthModule {
52
+ constructor();
53
+ static ɵfac: i0.ɵɵFactoryDeclaration<AngularFireAuthModule, never>;
54
+ static ɵmod: i0.ɵɵNgModuleDeclaration<AngularFireAuthModule, never, never, never>;
55
+ static ɵinj: i0.ɵɵInjectorDeclaration<AngularFireAuthModule>;
56
+ }
57
+
58
+ export { AngularFireAuth, AngularFireAuthModule, LANGUAGE_CODE, PERSISTENCE, SETTINGS, TENANT_ID, USE_DEVICE_LANGUAGE, USE_EMULATOR, ɵauthFactory };
@@ -1,5 +1,44 @@
1
- /**
2
- * Generated bundle index. Do not edit.
3
- */
4
- /// <amd-module name="@angular/fire/compat/auth-guard" />
5
- export * from './public_api';
1
+ import * as rxjs from 'rxjs';
2
+ import { UnaryFunction, Observable } from 'rxjs';
3
+ import * as _angular_router from '@angular/router';
4
+ import { ActivatedRouteSnapshot, RouterStateSnapshot, CanActivate, Router } from '@angular/router';
5
+ import { AngularFireAuth } from '@angular/fire/compat/auth';
6
+ import firebase from 'firebase/compat/app';
7
+ import * as i0 from '@angular/core';
8
+
9
+ type AuthPipeGenerator = (next: ActivatedRouteSnapshot, state: RouterStateSnapshot) => AuthPipe;
10
+ type AuthPipe = UnaryFunction<Observable<firebase.User | null>, Observable<boolean | string | any[]>>;
11
+ declare const loggedIn: AuthPipe;
12
+ declare class AngularFireAuthGuard implements CanActivate {
13
+ private router;
14
+ private auth;
15
+ constructor(router: Router, auth: AngularFireAuth);
16
+ canActivate: (next: ActivatedRouteSnapshot, state: RouterStateSnapshot) => Observable<boolean | _angular_router.UrlTree>;
17
+ static ɵfac: i0.ɵɵFactoryDeclaration<AngularFireAuthGuard, never>;
18
+ static ɵprov: i0.ɵɵInjectableDeclaration<AngularFireAuthGuard>;
19
+ }
20
+ declare const canActivate: (pipe: AuthPipeGenerator) => {
21
+ canActivate: (typeof AngularFireAuthGuard)[];
22
+ data: {
23
+ authGuardPipe: AuthPipeGenerator;
24
+ };
25
+ };
26
+ declare const isNotAnonymous: AuthPipe;
27
+ declare const idTokenResult: rxjs.OperatorFunction<firebase.User, firebase.auth.IdTokenResult>;
28
+ declare const emailVerified: AuthPipe;
29
+ declare const customClaims: UnaryFunction<Observable<firebase.User>, Observable<any[] | {
30
+ [key: string]: any;
31
+ }>>;
32
+ declare const hasCustomClaim: (claim: string) => AuthPipe;
33
+ declare const redirectUnauthorizedTo: (redirect: string | any[]) => AuthPipe;
34
+ declare const redirectLoggedInTo: (redirect: string | any[]) => AuthPipe;
35
+
36
+ declare class AngularFireAuthGuardModule {
37
+ constructor();
38
+ static ɵfac: i0.ɵɵFactoryDeclaration<AngularFireAuthGuardModule, never>;
39
+ static ɵmod: i0.ɵɵNgModuleDeclaration<AngularFireAuthGuardModule, never, never, never>;
40
+ static ɵinj: i0.ɵɵInjectorDeclaration<AngularFireAuthGuardModule>;
41
+ }
42
+
43
+ export { AngularFireAuthGuard, AngularFireAuthGuardModule, canActivate, customClaims, emailVerified, hasCustomClaim, idTokenResult, isNotAnonymous, loggedIn, redirectLoggedInTo, redirectUnauthorizedTo };
44
+ export type { AuthPipe, AuthPipeGenerator };
@@ -1,5 +1,109 @@
1
+ import * as i0 from '@angular/core';
2
+ import { InjectionToken, NgZone, Injector } from '@angular/core';
3
+ import { ɵAngularFireSchedulers as _AngularFireSchedulers } from '@angular/fire';
4
+ import { AppCheckInstances } from '@angular/fire/app-check';
5
+ import { AngularFireAuth } from '@angular/fire/compat/auth';
6
+ import { FirebaseOptions } from 'firebase/app';
7
+ import firebase from 'firebase/compat/app';
8
+ import * as rxjs from 'rxjs';
9
+ import { Observable, SchedulerLike } from 'rxjs';
10
+
11
+ type FirebaseOperation = string | firebase.database.Reference | firebase.database.DataSnapshot;
12
+ interface AngularFireList<T> {
13
+ query: DatabaseQuery;
14
+ valueChanges(events?: ChildEvent[], options?: unknown): Observable<T[]>;
15
+ valueChanges<K extends string>(events?: ChildEvent[], options?: {
16
+ idField: K;
17
+ }): Observable<(T & {
18
+ [T in K]?: string;
19
+ })[]>;
20
+ snapshotChanges(events?: ChildEvent[]): Observable<SnapshotAction<T>[]>;
21
+ stateChanges(events?: ChildEvent[]): Observable<SnapshotAction<T>>;
22
+ auditTrail(events?: ChildEvent[]): Observable<SnapshotAction<T>[]>;
23
+ update(item: FirebaseOperation, data: Partial<T>): Promise<void>;
24
+ set(item: FirebaseOperation, data: T): Promise<void>;
25
+ push(data: T): firebase.database.ThenableReference;
26
+ remove(item?: FirebaseOperation): Promise<void>;
27
+ }
28
+ interface AngularFireObject<T> {
29
+ query: DatabaseQuery;
30
+ valueChanges(): Observable<T | null>;
31
+ snapshotChanges(): Observable<SnapshotAction<T>>;
32
+ update(data: Partial<T>): Promise<void>;
33
+ set(data: T): Promise<void>;
34
+ remove(): Promise<void>;
35
+ }
36
+ type QueryFn = (ref: DatabaseReference) => DatabaseQuery;
37
+ type ChildEvent = 'child_added' | 'child_removed' | 'child_changed' | 'child_moved';
38
+ type ListenEvent = 'value' | ChildEvent;
39
+ interface Action<T> {
40
+ type: ListenEvent;
41
+ payload: T;
42
+ }
43
+ interface AngularFireAction<T> extends Action<T> {
44
+ prevKey: string | null | undefined;
45
+ key: string | null;
46
+ }
47
+ type SnapshotAction<T> = AngularFireAction<DatabaseSnapshot<T>>;
48
+ interface DatabaseSnapshotExists<T> extends firebase.database.DataSnapshot {
49
+ exists(): true;
50
+ val(): T;
51
+ forEach(action: (a: DatabaseSnapshot<T>) => boolean): boolean;
52
+ }
53
+ interface DatabaseSnapshotDoesNotExist<T> extends firebase.database.DataSnapshot {
54
+ exists(): false;
55
+ val(): null;
56
+ forEach(action: (a: DatabaseSnapshot<T>) => boolean): boolean;
57
+ }
58
+ type DatabaseSnapshot<T> = DatabaseSnapshotExists<T> | DatabaseSnapshotDoesNotExist<T>;
59
+ type DatabaseReference = firebase.database.Reference;
60
+ type DatabaseQuery = firebase.database.Query;
61
+ type QueryReference = DatabaseReference | DatabaseQuery;
62
+ type PathReference = QueryReference | string;
63
+
64
+ declare const URL: InjectionToken<string>;
65
+ declare const USE_EMULATOR: InjectionToken<[host: string, port: number, options?: {
66
+ mockUserToken?: firebase.database.EmulatorMockTokenOptions | string;
67
+ }]>;
68
+ declare class AngularFireDatabase {
69
+ schedulers: _AngularFireSchedulers;
70
+ readonly database: firebase.database.Database;
71
+ private readonly injector;
72
+ constructor(options: FirebaseOptions, name: string | null | undefined, databaseURL: string | null, platformId: Object, zone: NgZone, schedulers: _AngularFireSchedulers, _useEmulator: any, // tuple isn't working here
73
+ auth: AngularFireAuth, useAuthEmulator: any, authSettings: any, // can't use firebase.auth.AuthSettings here
74
+ tenantId: string | null, languageCode: string | null, useDeviceLanguage: boolean | null, persistence: string | null, _appCheckInstances: AppCheckInstances);
75
+ list<T>(pathOrRef: PathReference, queryFn?: QueryFn): AngularFireList<T>;
76
+ object<T>(pathOrRef: PathReference): AngularFireObject<T>;
77
+ createPushId(): string;
78
+ static ɵfac: i0.ɵɵFactoryDeclaration<AngularFireDatabase, [null, { optional: true; }, { optional: true; }, null, null, null, { optional: true; }, { optional: true; }, { optional: true; }, { optional: true; }, { optional: true; }, { optional: true; }, { optional: true; }, { optional: true; }, { optional: true; }]>;
79
+ static ɵprov: i0.ɵɵInjectableDeclaration<AngularFireDatabase>;
80
+ }
81
+
82
+ declare function listChanges<T = any>(ref: DatabaseQuery, events: ChildEvent[], scheduler?: SchedulerLike): Observable<SnapshotAction<T>[]>;
83
+
84
+ declare function createListReference<T = any>(query: DatabaseQuery, afDatabase: AngularFireDatabase, injector?: Injector): AngularFireList<T>;
85
+
86
+ declare function snapshotChanges<T>(query: DatabaseQuery, events?: ChildEvent[], scheduler?: SchedulerLike): Observable<SnapshotAction<T>[]>;
87
+
88
+ declare function stateChanges<T>(query: DatabaseQuery, events?: ChildEvent[], scheduler?: SchedulerLike): rxjs.Observable<AngularFireAction<DatabaseSnapshot<T>>>;
89
+
90
+ declare function auditTrail<T>(query: DatabaseQuery, events?: ChildEvent[], scheduler?: SchedulerLike): Observable<SnapshotAction<T>[]>;
91
+
1
92
  /**
2
- * Generated bundle index. Do not edit.
93
+ * Create an observable from a Database Reference or Database Query.
94
+ * @param ref Database Reference
95
+ * @param event Listen event type ('value', 'added', 'changed', 'removed', 'moved')
96
+ * @param listenType 'on' or 'once'
97
+ * @param scheduler - Rxjs scheduler
3
98
  */
4
- /// <amd-module name="@angular/fire/compat/database" />
5
- export * from './public_api';
99
+ declare function fromRef<T>(ref: DatabaseQuery, event: ListenEvent, listenType?: string, scheduler?: SchedulerLike): Observable<AngularFireAction<DatabaseSnapshot<T>>>;
100
+
101
+ declare class AngularFireDatabaseModule {
102
+ constructor();
103
+ static ɵfac: i0.ɵɵFactoryDeclaration<AngularFireDatabaseModule, never>;
104
+ static ɵmod: i0.ɵɵNgModuleDeclaration<AngularFireDatabaseModule, never, never, never>;
105
+ static ɵinj: i0.ɵɵInjectorDeclaration<AngularFireDatabaseModule>;
106
+ }
107
+
108
+ export { AngularFireDatabase, AngularFireDatabaseModule, URL, USE_EMULATOR, auditTrail, createListReference, fromRef, listChanges, snapshotChanges, stateChanges };
109
+ export type { Action, AngularFireAction, AngularFireList, AngularFireObject, ChildEvent, DatabaseSnapshot, ListenEvent, PathReference, QueryFn, SnapshotAction };