@angular/fire 20.0.3 → 21.0.0-canary.a2662fe

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 (146) hide show
  1. package/README.md +41 -32
  2. package/ai/package.json +2 -1
  3. package/analytics/package.json +2 -1
  4. package/app/package.json +2 -1
  5. package/app-check/package.json +2 -1
  6. package/auth/package.json +2 -1
  7. package/auth-guard/package.json +2 -1
  8. package/compat/analytics/package.json +2 -1
  9. package/compat/auth/package.json +2 -1
  10. package/compat/auth-guard/package.json +2 -1
  11. package/compat/database/package.json +2 -1
  12. package/compat/firestore/package.json +2 -1
  13. package/compat/functions/package.json +2 -1
  14. package/compat/messaging/package.json +2 -1
  15. package/compat/package.json +2 -1
  16. package/compat/performance/package.json +2 -1
  17. package/compat/remote-config/package.json +2 -1
  18. package/compat/storage/package.json +2 -1
  19. package/data-connect/package.json +2 -1
  20. package/database/package.json +2 -1
  21. package/docs/ai.md +52 -0
  22. package/docs/analytics.md +2 -5
  23. package/docs/app-check.md +6 -8
  24. package/docs/app-hosting.md +95 -0
  25. package/docs/auth.md +214 -29
  26. package/docs/compat/auth/router-guards.md +1 -1
  27. package/docs/compat.md +1 -1
  28. package/docs/data-connect.md +56 -0
  29. package/docs/database.md +14 -12
  30. package/docs/deploy/getting-started.md +2 -0
  31. package/docs/firestore.md +7 -7
  32. package/docs/functions.md +3 -5
  33. package/docs/install-and-setup.md +43 -24
  34. package/docs/install-firebase-tools.md +2 -0
  35. package/docs/messaging.md +83 -52
  36. package/docs/performance.md +3 -5
  37. package/docs/remote-config.md +3 -5
  38. package/docs/storage.md +3 -5
  39. package/docs/version-21-upgrade.md +90 -0
  40. package/docs/zones.md +45 -1
  41. package/fesm2022/angular-fire-ai.mjs +8 -8
  42. package/fesm2022/angular-fire-ai.mjs.map +1 -1
  43. package/fesm2022/angular-fire-analytics.mjs +10 -10
  44. package/fesm2022/angular-fire-analytics.mjs.map +1 -1
  45. package/fesm2022/angular-fire-app-check.mjs +4 -4
  46. package/fesm2022/angular-fire-app-check.mjs.map +1 -1
  47. package/fesm2022/angular-fire-app.mjs +5 -6
  48. package/fesm2022/angular-fire-app.mjs.map +1 -1
  49. package/fesm2022/angular-fire-auth-guard.mjs +7 -7
  50. package/fesm2022/angular-fire-auth-guard.mjs.map +1 -1
  51. package/fesm2022/angular-fire-auth.mjs +4 -4
  52. package/fesm2022/angular-fire-auth.mjs.map +1 -1
  53. package/fesm2022/angular-fire-compat-analytics.mjs +17 -21
  54. package/fesm2022/angular-fire-compat-analytics.mjs.map +1 -1
  55. package/fesm2022/angular-fire-compat-auth-guard.mjs +7 -7
  56. package/fesm2022/angular-fire-compat-auth-guard.mjs.map +1 -1
  57. package/fesm2022/angular-fire-compat-auth.mjs +9 -11
  58. package/fesm2022/angular-fire-compat-auth.mjs.map +1 -1
  59. package/fesm2022/angular-fire-compat-database.mjs +11 -13
  60. package/fesm2022/angular-fire-compat-database.mjs.map +1 -1
  61. package/fesm2022/angular-fire-compat-firestore.mjs +12 -14
  62. package/fesm2022/angular-fire-compat-firestore.mjs.map +1 -1
  63. package/fesm2022/angular-fire-compat-functions.mjs +7 -7
  64. package/fesm2022/angular-fire-compat-functions.mjs.map +1 -1
  65. package/fesm2022/angular-fire-compat-messaging.mjs +9 -11
  66. package/fesm2022/angular-fire-compat-messaging.mjs.map +1 -1
  67. package/fesm2022/angular-fire-compat-performance.mjs +13 -17
  68. package/fesm2022/angular-fire-compat-performance.mjs.map +1 -1
  69. package/fesm2022/angular-fire-compat-remote-config.mjs +11 -16
  70. package/fesm2022/angular-fire-compat-remote-config.mjs.map +1 -1
  71. package/fesm2022/angular-fire-compat-storage.mjs +16 -18
  72. package/fesm2022/angular-fire-compat-storage.mjs.map +1 -1
  73. package/fesm2022/angular-fire-compat.mjs +8 -9
  74. package/fesm2022/angular-fire-compat.mjs.map +1 -1
  75. package/fesm2022/angular-fire-data-connect.mjs +4 -4
  76. package/fesm2022/angular-fire-data-connect.mjs.map +1 -1
  77. package/fesm2022/angular-fire-database.mjs +4 -4
  78. package/fesm2022/angular-fire-database.mjs.map +1 -1
  79. package/fesm2022/angular-fire-firestore-lite.mjs +4 -4
  80. package/fesm2022/angular-fire-firestore-lite.mjs.map +1 -1
  81. package/fesm2022/angular-fire-firestore.mjs +9 -6
  82. package/fesm2022/angular-fire-firestore.mjs.map +1 -1
  83. package/fesm2022/angular-fire-functions.mjs +4 -4
  84. package/fesm2022/angular-fire-functions.mjs.map +1 -1
  85. package/fesm2022/angular-fire-messaging.mjs +10 -6
  86. package/fesm2022/angular-fire-messaging.mjs.map +1 -1
  87. package/fesm2022/angular-fire-performance.mjs +5 -8
  88. package/fesm2022/angular-fire-performance.mjs.map +1 -1
  89. package/fesm2022/angular-fire-remote-config.mjs +7 -6
  90. package/fesm2022/angular-fire-remote-config.mjs.map +1 -1
  91. package/fesm2022/angular-fire-storage.mjs +4 -4
  92. package/fesm2022/angular-fire-storage.mjs.map +1 -1
  93. package/fesm2022/angular-fire.mjs +4 -6
  94. package/fesm2022/angular-fire.mjs.map +1 -1
  95. package/firestore/lite/package.json +2 -1
  96. package/firestore/package.json +2 -1
  97. package/functions/package.json +2 -1
  98. package/messaging/package.json +2 -1
  99. package/package.json +73 -69
  100. package/performance/package.json +2 -1
  101. package/publish.sh +1 -1
  102. package/remote-config/package.json +2 -1
  103. package/schematics/add/index.js +1 -1
  104. package/schematics/deploy/actions.js +76 -85
  105. package/schematics/deploy/builder.js +161 -170
  106. package/schematics/deploy/schema.json +6 -3
  107. package/schematics/migration.json +4 -4
  108. package/schematics/setup/index.js +162 -142
  109. package/schematics/update/v21/index.js +1 -0
  110. package/schematics/update/v7/index.js +1 -1
  111. package/storage/package.json +2 -1
  112. package/{ai/index.d.ts → types/angular-fire-ai.d.ts} +4 -4
  113. package/{app/index.d.ts → types/angular-fire-app.d.ts} +1 -1
  114. package/{auth-guard/index.d.ts → types/angular-fire-auth-guard.d.ts} +2 -2
  115. package/{compat/analytics/index.d.ts → types/angular-fire-compat-analytics.d.ts} +2 -2
  116. package/{compat/auth-guard/index.d.ts → types/angular-fire-compat-auth-guard.d.ts} +2 -2
  117. package/{compat/auth/index.d.ts → types/angular-fire-compat-auth.d.ts} +1 -1
  118. package/{compat/database/index.d.ts → types/angular-fire-compat-database.d.ts} +5 -6
  119. package/{compat/firestore/index.d.ts → types/angular-fire-compat-firestore.d.ts} +5 -11
  120. package/{compat/functions/index.d.ts → types/angular-fire-compat-functions.d.ts} +1 -1
  121. package/{compat/messaging/index.d.ts → types/angular-fire-compat-messaging.d.ts} +2 -2
  122. package/{compat/performance/index.d.ts → types/angular-fire-compat-performance.d.ts} +2 -2
  123. package/{compat/remote-config/index.d.ts → types/angular-fire-compat-remote-config.d.ts} +3 -3
  124. package/{compat/storage/index.d.ts → types/angular-fire-compat-storage.d.ts} +18 -18
  125. package/{compat/index.d.ts → types/angular-fire-compat.d.ts} +2 -2
  126. package/{firestore/lite/index.d.ts → types/angular-fire-firestore-lite.d.ts} +1 -1
  127. package/{firestore/index.d.ts → types/angular-fire-firestore.d.ts} +6 -3
  128. package/{messaging/index.d.ts → types/angular-fire-messaging.d.ts} +6 -2
  129. package/{remote-config/index.d.ts → types/angular-fire-remote-config.d.ts} +3 -2
  130. package/docs/firebase.json +0 -16
  131. package/docs/install-angular-cli-windows10.md +0 -82
  132. package/docs/vertexai.md +0 -53
  133. package/fesm2022/angular-fire-vertexai.mjs +0 -102
  134. package/fesm2022/angular-fire-vertexai.mjs.map +0 -1
  135. package/schematics/update/index.js +0 -1
  136. package/vertexai/index.d.ts +0 -33
  137. package/vertexai/package.json +0 -3
  138. /package/{analytics/index.d.ts → types/angular-fire-analytics.d.ts} +0 -0
  139. /package/{app-check/index.d.ts → types/angular-fire-app-check.d.ts} +0 -0
  140. /package/{auth/index.d.ts → types/angular-fire-auth.d.ts} +0 -0
  141. /package/{data-connect/index.d.ts → types/angular-fire-data-connect.d.ts} +0 -0
  142. /package/{database/index.d.ts → types/angular-fire-database.d.ts} +0 -0
  143. /package/{functions/index.d.ts → types/angular-fire-functions.d.ts} +0 -0
  144. /package/{performance/index.d.ts → types/angular-fire-performance.d.ts} +0 -0
  145. /package/{storage/index.d.ts → types/angular-fire-storage.d.ts} +0 -0
  146. /package/{index.d.ts → types/angular-fire.d.ts} +0 -0
@@ -1,20 +1,20 @@
1
1
  import * as i0 from '@angular/core';
2
- import { Injector, InjectionToken, NgZone, PipeTransform, OnDestroy, ChangeDetectorRef, TransferState } from '@angular/core';
2
+ import { Injector, NgZone, InjectionToken, PipeTransform, OnDestroy, ChangeDetectorRef, TransferState } from '@angular/core';
3
3
  import { Observable } from 'rxjs';
4
- import firebase from 'firebase/compat/app';
4
+ import * as firebase from 'firebase/compat/app';
5
+ import firebase__default from 'firebase/compat/app';
5
6
  import * as _angular_fire_compat_storage from '@angular/fire/compat/storage';
6
7
  import { ɵAngularFireSchedulers as _AngularFireSchedulers } from '@angular/fire';
7
8
  import { AppCheckInstances } from '@angular/fire/app-check';
8
9
  import { FirebaseOptions } from 'firebase/app';
9
- import * as firebase_compat from 'firebase/compat';
10
10
 
11
- type UploadTask = firebase.storage.UploadTask;
12
- type UploadTaskSnapshot = firebase.storage.UploadTaskSnapshot;
13
- type UploadMetadata = firebase.storage.UploadMetadata;
14
- type SettableMetadata = firebase.storage.SettableMetadata;
15
- type Reference = firebase.storage.Reference;
16
- type ListResult = firebase.storage.ListResult;
17
- type ListOptions = firebase.storage.ListOptions;
11
+ type UploadTask = firebase__default.storage.UploadTask;
12
+ type UploadTaskSnapshot = firebase__default.storage.UploadTaskSnapshot;
13
+ type UploadMetadata = firebase__default.storage.UploadMetadata;
14
+ type SettableMetadata = firebase__default.storage.SettableMetadata;
15
+ type Reference = firebase__default.storage.Reference;
16
+ type ListResult = firebase__default.storage.ListResult;
17
+ type ListOptions = firebase__default.storage.ListOptions;
18
18
 
19
19
  interface AngularFireUploadTask {
20
20
  task: UploadTask;
@@ -39,8 +39,8 @@ interface AngularFireStorageReference {
39
39
  delete(): Observable<any>;
40
40
  child(path: string): AngularFireStorageReference;
41
41
  updateMetadata(meta: SettableMetadata): Observable<any>;
42
- put(data: any, metadata?: UploadMetadata | undefined): AngularFireUploadTask;
43
- putString(data: string, format?: string | undefined, metadata?: UploadMetadata | undefined): AngularFireUploadTask;
42
+ put(data: any, metadata?: UploadMetadata): AngularFireUploadTask;
43
+ putString(data: string, format?: string, metadata?: UploadMetadata): AngularFireUploadTask;
44
44
  list(options?: ListOptions): Observable<ListResult>;
45
45
  listAll(): Observable<ListResult>;
46
46
  }
@@ -54,7 +54,7 @@ declare const BUCKET: InjectionToken<string>;
54
54
  declare const MAX_UPLOAD_RETRY_TIME: InjectionToken<number>;
55
55
  declare const MAX_OPERATION_RETRY_TIME: InjectionToken<number>;
56
56
  declare const USE_EMULATOR: InjectionToken<[host: string, port: number, options?: {
57
- mockUserToken?: firebase.EmulatorMockTokenOptions | string;
57
+ mockUserToken?: firebase__default.EmulatorMockTokenOptions | string;
58
58
  }]>;
59
59
  /**
60
60
  * AngularFireStorage Service
@@ -64,17 +64,17 @@ declare const USE_EMULATOR: InjectionToken<[host: string, port: number, options?
64
64
  * Firebase.
65
65
  */
66
66
  declare class AngularFireStorage {
67
- readonly storage: firebase.storage.Storage;
67
+ readonly storage: firebase__default.storage.Storage;
68
68
  private readonly injector;
69
- constructor(options: FirebaseOptions, name: string | null | undefined, storageBucket: string | null, platformId: Object, zone: NgZone, schedulers: _AngularFireSchedulers, maxUploadRetryTime: any, maxOperationRetryTime: any, _useEmulator: any, _appCheckInstances: AppCheckInstances);
70
- ref(path: string): AngularFireStorageReference;
71
- refFromURL(path: string): AngularFireStorageReference;
69
+ constructor(options: FirebaseOptions, name: string | null | undefined, storageBucket: string | null, platformId: object, zone: NgZone, schedulers: _AngularFireSchedulers, maxUploadRetryTime: any, maxOperationRetryTime: any, _useEmulator: any, _appCheckInstances: AppCheckInstances);
70
+ ref(path: string): _angular_fire_compat_storage.AngularFireStorageReference;
71
+ refFromURL(path: string): _angular_fire_compat_storage.AngularFireStorageReference;
72
72
  upload(path: string, data: any, metadata?: UploadMetadata): _angular_fire_compat_storage.AngularFireUploadTask;
73
73
  static ɵfac: i0.ɵɵFactoryDeclaration<AngularFireStorage, [null, { optional: true; }, { optional: true; }, null, null, null, { optional: true; }, { optional: true; }, { optional: true; }, { optional: true; }]>;
74
74
  static ɵprov: i0.ɵɵInjectableDeclaration<AngularFireStorage>;
75
75
  }
76
76
 
77
- declare function fromTask(task: UploadTask): Observable<firebase_compat.default.storage.UploadTaskSnapshot>;
77
+ declare function fromTask(task: UploadTask): Observable<firebase.default.storage.UploadTaskSnapshot>;
78
78
 
79
79
  /** to be used with in combination with | async */
80
80
  declare class GetDownloadURLPipe implements PipeTransform, OnDestroy {
@@ -1,5 +1,5 @@
1
1
  import * as i0 from '@angular/core';
2
- import { NgZone, InjectionToken, ModuleWithProviders } from '@angular/core';
2
+ import { NgZone, ModuleWithProviders, InjectionToken } from '@angular/core';
3
3
  import { Observable } from 'rxjs';
4
4
  import firebase from 'firebase/compat/app';
5
5
  import { FirebaseOptions, FirebaseAppSettings } from 'firebase/app';
@@ -45,7 +45,7 @@ declare const FIREBASE_APP_NAME: InjectionToken<string>;
45
45
  declare function ɵfirebaseAppFactory(options: FirebaseOptions, zone: NgZone, nameOrConfig?: string | FirebaseAppSettings | null): FirebaseApp;
46
46
  declare class AngularFireModule {
47
47
  static initializeApp(options: FirebaseOptions, nameOrConfig?: string | FirebaseAppSettings): ModuleWithProviders<AngularFireModule>;
48
- constructor(platformId: Object);
48
+ constructor(platformId: object);
49
49
  static ɵfac: i0.ɵɵFactoryDeclaration<AngularFireModule, never>;
50
50
  static ɵmod: i0.ɵɵNgModuleDeclaration<AngularFireModule, never, never, never>;
51
51
  static ɵinj: i0.ɵɵInjectorDeclaration<AngularFireModule>;
@@ -3,7 +3,7 @@ import { Firestore as Firestore$1, addDoc as addDoc$1, aggregateFieldEqual as ag
3
3
  export * from 'firebase/firestore/lite';
4
4
  import * as i0 from '@angular/core';
5
5
  import { Injector, EnvironmentProviders } from '@angular/core';
6
- import { collection as collection$1, collectionCount as collectionCount$1, collectionCountSnap as collectionCountSnap$1, collectionData as collectionData$1, doc as doc$1, docData as docData$1, fromRef as fromRef$1, snapToData as snapToData$1 } from 'rxfire/firestore/lite';
6
+ import { collectionCount as collectionCount$1, collectionCountSnap as collectionCountSnap$1, collectionData as collectionData$1, collection as collection$1, docData as docData$1, doc as doc$1, fromRef as fromRef$1, snapToData as snapToData$1 } from 'rxfire/firestore/lite';
7
7
 
8
8
  interface Firestore extends Firestore$1 {
9
9
  }
@@ -1,9 +1,9 @@
1
1
  import * as rxjs from 'rxjs';
2
- import { Firestore as Firestore$1, addDoc as addDoc$1, aggregateFieldEqual as aggregateFieldEqual$1, aggregateQuerySnapshotEqual as aggregateQuerySnapshotEqual$1, and as and$1, clearIndexedDbPersistence as clearIndexedDbPersistence$1, collection as collection$2, collectionGroup as collectionGroup$1, connectFirestoreEmulator as connectFirestoreEmulator$1, deleteAllPersistentCacheIndexes as deleteAllPersistentCacheIndexes$1, deleteDoc as deleteDoc$1, deleteField as deleteField$1, disableNetwork as disableNetwork$1, disablePersistentCacheIndexAutoCreation as disablePersistentCacheIndexAutoCreation$1, doc as doc$2, documentId as documentId$1, enableIndexedDbPersistence as enableIndexedDbPersistence$1, enableMultiTabIndexedDbPersistence as enableMultiTabIndexedDbPersistence$1, enableNetwork as enableNetwork$1, enablePersistentCacheIndexAutoCreation as enablePersistentCacheIndexAutoCreation$1, endAt as endAt$1, endBefore as endBefore$1, getAggregateFromServer as getAggregateFromServer$1, getCountFromServer as getCountFromServer$1, getDoc as getDoc$1, getDocFromCache as getDocFromCache$1, getDocFromServer as getDocFromServer$1, getDocs as getDocs$1, getDocsFromCache as getDocsFromCache$1, getDocsFromServer as getDocsFromServer$1, getFirestore as getFirestore$1, getPersistentCacheIndexManager as getPersistentCacheIndexManager$1, increment as increment$1, initializeFirestore as initializeFirestore$1, limit as limit$1, limitToLast as limitToLast$1, loadBundle as loadBundle$1, namedQuery as namedQuery$1, onSnapshot as onSnapshot$1, onSnapshotsInSync as onSnapshotsInSync$1, or as or$1, orderBy as orderBy$1, query as query$1, queryEqual as queryEqual$1, refEqual as refEqual$1, runTransaction as runTransaction$1, setDoc as setDoc$1, setIndexConfiguration as setIndexConfiguration$1, setLogLevel as setLogLevel$1, snapshotEqual as snapshotEqual$1, startAfter as startAfter$1, startAt as startAt$1, sum as sum$1, terminate as terminate$1, updateDoc as updateDoc$1, vector as vector$1, waitForPendingWrites as waitForPendingWrites$1, where as where$1, writeBatch as writeBatch$1 } from 'firebase/firestore';
2
+ import { Firestore as Firestore$1, addDoc as addDoc$1, aggregateFieldEqual as aggregateFieldEqual$1, aggregateQuerySnapshotEqual as aggregateQuerySnapshotEqual$1, and as and$1, clearIndexedDbPersistence as clearIndexedDbPersistence$1, collection as collection$2, collectionGroup as collectionGroup$1, connectFirestoreEmulator as connectFirestoreEmulator$1, deleteAllPersistentCacheIndexes as deleteAllPersistentCacheIndexes$1, deleteDoc as deleteDoc$1, deleteField as deleteField$1, disableNetwork as disableNetwork$1, disablePersistentCacheIndexAutoCreation as disablePersistentCacheIndexAutoCreation$1, doc as doc$2, documentId as documentId$1, documentSnapshotFromJSON as documentSnapshotFromJSON$1, enableIndexedDbPersistence as enableIndexedDbPersistence$1, enableMultiTabIndexedDbPersistence as enableMultiTabIndexedDbPersistence$1, enableNetwork as enableNetwork$1, enablePersistentCacheIndexAutoCreation as enablePersistentCacheIndexAutoCreation$1, endAt as endAt$1, endBefore as endBefore$1, getAggregateFromServer as getAggregateFromServer$1, getCountFromServer as getCountFromServer$1, getDoc as getDoc$1, getDocFromCache as getDocFromCache$1, getDocFromServer as getDocFromServer$1, getDocs as getDocs$1, getDocsFromCache as getDocsFromCache$1, getDocsFromServer as getDocsFromServer$1, getFirestore as getFirestore$1, getPersistentCacheIndexManager as getPersistentCacheIndexManager$1, increment as increment$1, initializeFirestore as initializeFirestore$1, limit as limit$1, limitToLast as limitToLast$1, loadBundle as loadBundle$1, namedQuery as namedQuery$1, onSnapshot as onSnapshot$1, onSnapshotResume as onSnapshotResume$1, onSnapshotsInSync as onSnapshotsInSync$1, or as or$1, orderBy as orderBy$1, query as query$1, queryEqual as queryEqual$1, querySnapshotFromJSON as querySnapshotFromJSON$1, refEqual as refEqual$1, runTransaction as runTransaction$1, setDoc as setDoc$1, setIndexConfiguration as setIndexConfiguration$1, setLogLevel as setLogLevel$1, snapshotEqual as snapshotEqual$1, startAfter as startAfter$1, startAt as startAt$1, sum as sum$1, terminate as terminate$1, updateDoc as updateDoc$1, vector as vector$1, waitForPendingWrites as waitForPendingWrites$1, where as where$1, writeBatch as writeBatch$1 } from 'firebase/firestore';
3
3
  export * from 'firebase/firestore';
4
4
  import * as i0 from '@angular/core';
5
5
  import { Injector, EnvironmentProviders } from '@angular/core';
6
- import { auditTrail as auditTrail$1, collection as collection$1, collectionChanges as collectionChanges$1, collectionCount as collectionCount$1, collectionCountSnap as collectionCountSnap$1, collectionData as collectionData$1, doc as doc$1, docData as docData$1, fromRef as fromRef$1, snapToData as snapToData$1, sortedChanges as sortedChanges$1 } from 'rxfire/firestore';
6
+ import { auditTrail as auditTrail$1, collectionChanges as collectionChanges$1, collectionCount as collectionCount$1, collectionCountSnap as collectionCountSnap$1, collectionData as collectionData$1, collection as collection$1, docData as docData$1, doc as doc$1, fromRef as fromRef$1, snapToData as snapToData$1, sortedChanges as sortedChanges$1 } from 'rxfire/firestore';
7
7
 
8
8
  interface Firestore extends Firestore$1 {
9
9
  }
@@ -52,6 +52,7 @@ declare const disableNetwork: typeof disableNetwork$1;
52
52
  declare const disablePersistentCacheIndexAutoCreation: typeof disablePersistentCacheIndexAutoCreation$1;
53
53
  declare const doc: typeof doc$2;
54
54
  declare const documentId: typeof documentId$1;
55
+ declare const documentSnapshotFromJSON: typeof documentSnapshotFromJSON$1;
55
56
  declare const enableIndexedDbPersistence: typeof enableIndexedDbPersistence$1;
56
57
  declare const enableMultiTabIndexedDbPersistence: typeof enableMultiTabIndexedDbPersistence$1;
57
58
  declare const enableNetwork: typeof enableNetwork$1;
@@ -75,11 +76,13 @@ declare const limitToLast: typeof limitToLast$1;
75
76
  declare const loadBundle: typeof loadBundle$1;
76
77
  declare const namedQuery: typeof namedQuery$1;
77
78
  declare const onSnapshot: typeof onSnapshot$1;
79
+ declare const onSnapshotResume: typeof onSnapshotResume$1;
78
80
  declare const onSnapshotsInSync: typeof onSnapshotsInSync$1;
79
81
  declare const or: typeof or$1;
80
82
  declare const orderBy: typeof orderBy$1;
81
83
  declare const query: typeof query$1;
82
84
  declare const queryEqual: typeof queryEqual$1;
85
+ declare const querySnapshotFromJSON: typeof querySnapshotFromJSON$1;
83
86
  declare const refEqual: typeof refEqual$1;
84
87
  declare const runTransaction: typeof runTransaction$1;
85
88
  declare const setDoc: typeof setDoc$1;
@@ -96,4 +99,4 @@ declare const waitForPendingWrites: typeof waitForPendingWrites$1;
96
99
  declare const where: typeof where$1;
97
100
  declare const writeBatch: typeof writeBatch$1;
98
101
 
99
- export { Firestore, FirestoreInstances, FirestoreModule, addDoc, aggregateFieldEqual, aggregateQuerySnapshotEqual, and, auditTrail, clearIndexedDbPersistence, collection, collectionChanges, collectionCount, collectionCountSnap, collectionData, collectionGroup, collectionSnapshots, connectFirestoreEmulator, deleteAllPersistentCacheIndexes, deleteDoc, deleteField, disableNetwork, disablePersistentCacheIndexAutoCreation, doc, docData, docSnapshots, documentId, enableIndexedDbPersistence, enableMultiTabIndexedDbPersistence, enableNetwork, enablePersistentCacheIndexAutoCreation, endAt, endBefore, firestoreInstance$, fromRef, getAggregateFromServer, getCountFromServer, getDoc, getDocFromCache, getDocFromServer, getDocs, getDocsFromCache, getDocsFromServer, getFirestore, getPersistentCacheIndexManager, increment, initializeFirestore, limit, limitToLast, loadBundle, namedQuery, onSnapshot, onSnapshotsInSync, or, orderBy, provideFirestore, query, queryEqual, refEqual, runTransaction, setDoc, setIndexConfiguration, setLogLevel, snapToData, snapshotEqual, sortedChanges, startAfter, startAt, sum, terminate, updateDoc, vector, waitForPendingWrites, where, writeBatch };
102
+ export { Firestore, FirestoreInstances, FirestoreModule, addDoc, aggregateFieldEqual, aggregateQuerySnapshotEqual, and, auditTrail, clearIndexedDbPersistence, collection, collectionChanges, collectionCount, collectionCountSnap, collectionData, collectionGroup, collectionSnapshots, connectFirestoreEmulator, deleteAllPersistentCacheIndexes, deleteDoc, deleteField, disableNetwork, disablePersistentCacheIndexAutoCreation, doc, docData, docSnapshots, documentId, documentSnapshotFromJSON, enableIndexedDbPersistence, enableMultiTabIndexedDbPersistence, enableNetwork, enablePersistentCacheIndexAutoCreation, endAt, endBefore, firestoreInstance$, fromRef, getAggregateFromServer, getCountFromServer, getDoc, getDocFromCache, getDocFromServer, getDocs, getDocsFromCache, getDocsFromServer, getFirestore, getPersistentCacheIndexManager, increment, initializeFirestore, limit, limitToLast, loadBundle, namedQuery, onSnapshot, onSnapshotResume, onSnapshotsInSync, or, orderBy, provideFirestore, query, queryEqual, querySnapshotFromJSON, refEqual, runTransaction, setDoc, setIndexConfiguration, setLogLevel, snapToData, snapshotEqual, sortedChanges, startAfter, startAt, sum, terminate, updateDoc, vector, waitForPendingWrites, where, writeBatch };
@@ -1,5 +1,5 @@
1
1
  import * as rxjs from 'rxjs';
2
- import { Messaging as Messaging$1, deleteToken as deleteToken$1, getMessaging as getMessaging$1, getToken as getToken$1, isSupported as isSupported$1, onMessage as onMessage$1 } from 'firebase/messaging';
2
+ import { Messaging as Messaging$1, deleteToken as deleteToken$1, getMessaging as getMessaging$1, getToken as getToken$1, isSupported as isSupported$1, onMessage as onMessage$1, onRegistered as onRegistered$1, onUnregistered as onUnregistered$1, register as register$1, unregister as unregister$1 } from 'firebase/messaging';
3
3
  export * from 'firebase/messaging';
4
4
  import * as i0 from '@angular/core';
5
5
  import { Injector, EnvironmentProviders } from '@angular/core';
@@ -29,5 +29,9 @@ declare const getMessaging: typeof getMessaging$1;
29
29
  declare const getToken: typeof getToken$1;
30
30
  declare const isSupported: typeof isSupported$1;
31
31
  declare const onMessage: typeof onMessage$1;
32
+ declare const onRegistered: typeof onRegistered$1;
33
+ declare const onUnregistered: typeof onUnregistered$1;
34
+ declare const register: typeof register$1;
35
+ declare const unregister: typeof unregister$1;
32
36
 
33
- export { Messaging, MessagingInstances, MessagingModule, deleteToken, getMessaging, getToken, isSupported, messagingInstance$, onMessage, provideMessaging };
37
+ export { Messaging, MessagingInstances, MessagingModule, deleteToken, getMessaging, getToken, isSupported, messagingInstance$, onMessage, onRegistered, onUnregistered, provideMessaging, register, unregister };
@@ -1,5 +1,5 @@
1
1
  import * as rxjs from 'rxjs';
2
- import { RemoteConfig as RemoteConfig$1, activate as activate$1, ensureInitialized as ensureInitialized$1, fetchAndActivate as fetchAndActivate$1, fetchConfig as fetchConfig$1, getAll as getAll$2, getBoolean as getBoolean$2, getNumber as getNumber$2, getRemoteConfig as getRemoteConfig$1, getString as getString$2, getValue as getValue$2, isSupported as isSupported$1, setCustomSignals as setCustomSignals$1, setLogLevel as setLogLevel$1 } from 'firebase/remote-config';
2
+ import { RemoteConfig as RemoteConfig$1, activate as activate$1, ensureInitialized as ensureInitialized$1, fetchAndActivate as fetchAndActivate$1, fetchConfig as fetchConfig$1, getAll as getAll$2, getBoolean as getBoolean$2, getNumber as getNumber$2, getRemoteConfig as getRemoteConfig$1, getString as getString$2, getValue as getValue$2, isSupported as isSupported$1, onConfigUpdate as onConfigUpdate$1, setCustomSignals as setCustomSignals$1, setLogLevel as setLogLevel$1 } from 'firebase/remote-config';
3
3
  export * from 'firebase/remote-config';
4
4
  import * as i0 from '@angular/core';
5
5
  import { Injector, EnvironmentProviders } from '@angular/core';
@@ -42,7 +42,8 @@ declare const getRemoteConfig: typeof getRemoteConfig$1;
42
42
  declare const getString: typeof getString$2;
43
43
  declare const getValue: typeof getValue$2;
44
44
  declare const isSupported: typeof isSupported$1;
45
+ declare const onConfigUpdate: typeof onConfigUpdate$1;
45
46
  declare const setCustomSignals: typeof setCustomSignals$1;
46
47
  declare const setLogLevel: typeof setLogLevel$1;
47
48
 
48
- export { RemoteConfig, RemoteConfigInstances, RemoteConfigModule, activate, ensureInitialized, fetchAndActivate, fetchConfig, getAll, getAllChanges, getBoolean, getBooleanChanges, getNumber, getNumberChanges, getRemoteConfig, getString, getStringChanges, getValue, getValueChanges, isSupported, provideRemoteConfig, remoteConfigInstance$, setCustomSignals, setLogLevel };
49
+ export { RemoteConfig, RemoteConfigInstances, RemoteConfigModule, activate, ensureInitialized, fetchAndActivate, fetchConfig, getAll, getAllChanges, getBoolean, getBooleanChanges, getNumber, getNumberChanges, getRemoteConfig, getString, getStringChanges, getValue, getValueChanges, isSupported, onConfigUpdate, provideRemoteConfig, remoteConfigInstance$, setCustomSignals, setLogLevel };
@@ -1,16 +0,0 @@
1
- {
2
- "firebase": "angular-fire-2",
3
- "public": ".",
4
- "redirects": [
5
- {
6
- "source": "/",
7
- "destination": "/api",
8
- "type": 302
9
- }
10
- ],
11
- "ignore": [
12
- "firebase.json",
13
- "**/.*",
14
- "**/node_modules/**"
15
- ]
16
- }
@@ -1,82 +0,0 @@
1
- # Installing Angular CLI on Windows 10
2
-
3
- > There had been installation issues of `@angular/cli` on Windows 10 system. Most of the time these errors are related to Python dependencies and node-gyp.
4
-
5
- Something as below :
6
-
7
- ```bash
8
- execSync@1.0.2 install C:\Users\User\AppData\Roaming\npm\node_modules\angu
9
- lar-cli\node_modules\angular2-template-loader\node_modules\codecov\node_modules\
10
- execSync
11
- node install.js
12
-
13
- [execsync v1.0.2] Attempting to compile native extensions.
14
- { [Error: spawn node-gyp ENOENT]
15
- code: 'ENOENT',
16
- errno: 'ENOENT',
17
- syscall: 'spawn node-gyp',
18
- path: 'node-gyp',
19
- spawnargs: [ 'rebuild' ] }
20
- [execSync v1.0.2]
21
- Native code compile failed!!
22
- Will try to use win32 extension.
23
- npm WARN deprecated tough-cookie@2.2.2: ReDoS vulnerability parsing Set-Cookie h
24
- ttps://nodesecurity.io/advisories/130
25
- npm WARN deprecated minimatch@0.3.0: Please update to minimatch 3.0.2 or higher
26
- to avoid a RegExp DoS issue
27
- npm WARN deprecated minimatch@2.0.10: Please update to minimatch 3.0.2 or higher
28
- to avoid a RegExp DoS issue
29
-
30
- node-zopfli@2.0.1 install C:\Users\User\AppData\Roaming\npm\node_modules\a
31
- ngular-cli\node_modules\compression-webpack-plugin\node_modules\node-zopfli
32
- node-pre-gyp install --fallback-to-build
33
- .......................
34
- ```
35
-
36
- To resolve this issue, make sure you've upgraded to the latest version of **NPM** and try installing `@angular/cli` again. This seems to have worked on certain scenarios.
37
-
38
- If the above doesn't work then the below steps should help. Please ensure all the commands are executed as an **Administrator**.
39
-
40
- ## Steps:
41
-
42
- ### 1) Install `node-gyp` from [here](https://github.com/nodejs/node-gyp) using NPM
43
-
44
- ```bash
45
- npm install -g node-gyp
46
- ```
47
-
48
- ### 2) Install Windows build tools from [here](https://github.com/felixrieseberg/windows-build-tools) using NPM
49
-
50
- ```bash
51
- npm install --global windows-build-tools
52
- ```
53
-
54
- *This will also install Python
55
-
56
- ### 3) Install Angular CLI
57
-
58
- ```bash
59
- npm install -g @angular/cli
60
- ```
61
-
62
- This should install `@angular/cli` without errors.
63
-
64
- #### Post this installation, follow the installation [guide](https://github.com/angular/angularfire2/blob/master/docs/install-and-setup.md) to install AngularFire and everything should work as expected.
65
-
66
-
67
- ### Note:
68
-
69
- When you start your app using `ng serve` in the console, you might still see the below errors. Despite these errors, the application should work as expected and should be able to talk to Firebase.
70
-
71
- ```bash
72
- ERROR in [default] C:\angularFire2Test\node_modules\angularfire2\interfaces.d.ts:12:34
73
- Cannot find namespace 'firebase'.
74
-
75
- ERROR in [default] C:\angularFire2Test\src\typings.d.ts:6:12
76
- Subsequent variable declarations must have the same type. Variable 'require' must be of type 'NodeRequire',
77
- but here has type 'any'.
78
-
79
- ERROR in [default] C:\angularFire2Test\src\typings.d.ts:7:12
80
- Subsequent variable declarations must have the same type. Variable 'module' must be of type 'NodeModule',
81
- but here has type 'any'.
82
- ```
package/docs/vertexai.md DELETED
@@ -1,53 +0,0 @@
1
- <small>
2
- <a href="https://github.com/angular/angularfire">AngularFire</a> &#10097; <a href="../README.md#developer-guide">Developer Guide</a> &#10097; Vertex AI
3
- </small>
4
-
5
- # Vertex AI (preview)
6
-
7
- The Vertex AI Gemini API gives you access to the latest generative AI models from Google: the Gemini models.
8
-
9
- [Learn more](https://firebase.google.com/docs/vertex-ai)
10
-
11
- ## Dependency Injection
12
-
13
- As a prerequisite, ensure that `AngularFire` has been added to your project via
14
- ```bash
15
- ng add @angular/fire
16
- ```
17
-
18
- Provide a Vertex AI instance in the application's `app.config.ts`:
19
-
20
- ```ts
21
- import { provideFirebaseApp, initializeApp } from '@angular/fire/app';
22
- import { provideVertexAI, getVertexAI } from '@angular/fire/vertexai-preview';
23
-
24
- export const appConfig: ApplicationConfig = {
25
- providers: [
26
- provideFirebaseApp(() => initializeApp({ ... })),
27
- provideVertexAI(() => getVertexAI()),
28
- ...
29
- ],
30
- ...,
31
- }
32
- ```
33
-
34
- Next inject `VertexAI` into your component:
35
-
36
- ```typescript
37
- import { Component, inject } from '@angular/core';
38
- import { VertexAI } from '@angular/fire/vertexai';
39
-
40
- @Component({ ... })
41
- export class MyComponent {
42
- private vertexAI = inject(VertexAI);
43
- ...
44
- }
45
- ```
46
-
47
- ## Firebase API
48
-
49
- AngularFire wraps the Firebase JS SDK to ensure proper functionality in Angular, while providing the same API.
50
-
51
- Update the imports from `import { ... } from 'firebase/vertexai'` to `import { ... } from '@angular/fire/vertexai'` and follow the official documentation.
52
-
53
- [Getting Started](https://firebase.google.com/docs/vertex-ai/get-started?platform=web) | [API Reference](https://firebase.google.com/docs/reference/js/vertexai)
@@ -1,102 +0,0 @@
1
- import { ɵgetAllInstancesOf as _getAllInstancesOf, ɵgetDefaultInstanceOf as _getDefaultInstanceOf, VERSION, ɵAngularFireSchedulers as _AngularFireSchedulers, ɵzoneWrap as _zoneWrap } from '@angular/fire';
2
- import { timer, from } from 'rxjs';
3
- import { concatMap, distinct } from 'rxjs/operators';
4
- import * as i0 from '@angular/core';
5
- import { InjectionToken, Optional, NgModule, makeEnvironmentProviders, NgZone, Injector } from '@angular/core';
6
- import { FirebaseApp, FirebaseApps } from '@angular/fire/app';
7
- import { AppCheckInstances } from '@angular/fire/app-check';
8
- import { registerVersion } from 'firebase/app';
9
- import { getAI as getAI$1, getGenerativeModel as getGenerativeModel$1, getImagenModel as getImagenModel$1, getVertexAI as getVertexAI$1 } from 'firebase/vertexai';
10
- export * from 'firebase/vertexai';
11
-
12
- class VertexAI {
13
- constructor(vertexai) {
14
- return vertexai;
15
- }
16
- }
17
- const VERTEX_AI_PROVIDER_NAME = 'vertexai';
18
- class VertexAIInstances {
19
- constructor() {
20
- return _getAllInstancesOf(VERTEX_AI_PROVIDER_NAME);
21
- }
22
- }
23
- const vertexAIInstance$ = timer(0, 300).pipe(concatMap(() => from(_getAllInstancesOf(VERTEX_AI_PROVIDER_NAME))), distinct());
24
-
25
- const PROVIDED_VERTEX_AI_INSTANCES = new InjectionToken('angularfire2.vertexai-instances');
26
- function defaultVertexAIInstanceFactory(provided, defaultApp) {
27
- const defaultVertexAI = _getDefaultInstanceOf(VERTEX_AI_PROVIDER_NAME, provided, defaultApp);
28
- return defaultVertexAI && new VertexAI(defaultVertexAI);
29
- }
30
- function vertexAIInstanceFactory(fn) {
31
- return (zone, injector) => {
32
- const vertexAI = zone.runOutsideAngular(() => fn(injector));
33
- return new VertexAI(vertexAI);
34
- };
35
- }
36
- const VERTEX_AI_INSTANCES_PROVIDER = {
37
- provide: VertexAIInstances,
38
- deps: [
39
- [new Optional(), PROVIDED_VERTEX_AI_INSTANCES],
40
- ]
41
- };
42
- const DEFAULT_VERTEX_AI_INSTANCE_PROVIDER = {
43
- provide: VertexAI,
44
- useFactory: defaultVertexAIInstanceFactory,
45
- deps: [
46
- [new Optional(), PROVIDED_VERTEX_AI_INSTANCES],
47
- FirebaseApp,
48
- ]
49
- };
50
- class VertexAIModule {
51
- constructor() {
52
- registerVersion('angularfire', VERSION.full, 'vertexai');
53
- }
54
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0", ngImport: i0, type: VertexAIModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
55
- static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.0.0", ngImport: i0, type: VertexAIModule });
56
- static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.0.0", ngImport: i0, type: VertexAIModule, providers: [
57
- DEFAULT_VERTEX_AI_INSTANCE_PROVIDER,
58
- VERTEX_AI_INSTANCES_PROVIDER,
59
- ] });
60
- }
61
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0", ngImport: i0, type: VertexAIModule, decorators: [{
62
- type: NgModule,
63
- args: [{
64
- providers: [
65
- DEFAULT_VERTEX_AI_INSTANCE_PROVIDER,
66
- VERTEX_AI_INSTANCES_PROVIDER,
67
- ]
68
- }]
69
- }], ctorParameters: () => [] });
70
- function provideVertexAI(fn, ...deps) {
71
- registerVersion('angularfire', VERSION.full, 'vertexai');
72
- return makeEnvironmentProviders([
73
- DEFAULT_VERTEX_AI_INSTANCE_PROVIDER,
74
- VERTEX_AI_INSTANCES_PROVIDER,
75
- {
76
- provide: PROVIDED_VERTEX_AI_INSTANCES,
77
- useFactory: vertexAIInstanceFactory(fn),
78
- multi: true,
79
- deps: [
80
- NgZone,
81
- Injector,
82
- _AngularFireSchedulers,
83
- FirebaseApps,
84
- [new Optional(), AppCheckInstances],
85
- ...deps,
86
- ]
87
- }
88
- ]);
89
- }
90
-
91
- // DO NOT MODIFY, this file is autogenerated by tools/build.ts
92
- const getAI = _zoneWrap(getAI$1, true);
93
- const getGenerativeModel = _zoneWrap(getGenerativeModel$1, true);
94
- const getImagenModel = _zoneWrap(getImagenModel$1, true);
95
- const getVertexAI = _zoneWrap(getVertexAI$1, true);
96
-
97
- /**
98
- * Generated bundle index. Do not edit.
99
- */
100
-
101
- export { VertexAI, VertexAIInstances, VertexAIModule, getAI, getGenerativeModel, getImagenModel, getVertexAI, provideVertexAI, vertexAIInstance$ };
102
- //# sourceMappingURL=angular-fire-vertexai.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"angular-fire-vertexai.mjs","sources":["../../../src/vertexai/vertexai.ts","../../../src/vertexai/vertexai.module.ts","../../../src/vertexai/firebase.ts","../../../src/vertexai/angular-fire-vertexai.ts"],"sourcesContent":["import { ɵgetAllInstancesOf } from '@angular/fire';\nimport { VertexAI as FirebaseVertexAI } from 'firebase/vertexai';\nimport { from, timer } from 'rxjs';\nimport { concatMap, distinct } from 'rxjs/operators';\n\n// see notes in core/firebase.app.module.ts for why we're building the class like this\n// eslint-disable-next-line @typescript-eslint/no-empty-interface\nexport interface VertexAI extends FirebaseVertexAI {}\n\nexport class VertexAI {\n constructor(vertexai: FirebaseVertexAI) {\n return vertexai;\n }\n}\n\nexport const VERTEX_AI_PROVIDER_NAME = 'vertexai';\n\n// eslint-disable-next-line @typescript-eslint/no-empty-interface\nexport interface VertexAIInstances extends Array<FirebaseVertexAI> {}\n\nexport class VertexAIInstances {\n constructor() {\n return ɵgetAllInstancesOf<FirebaseVertexAI>(VERTEX_AI_PROVIDER_NAME);\n }\n}\n\nexport const vertexAIInstance$ = timer(0, 300).pipe(\n concatMap(() => from(ɵgetAllInstancesOf<FirebaseVertexAI>(VERTEX_AI_PROVIDER_NAME))),\n distinct(),\n);\n","import {\n EnvironmentProviders,\n InjectionToken,\n Injector,\n NgModule,\n NgZone,\n Optional,\n makeEnvironmentProviders,\n} from '@angular/core';\nimport { VERSION, ɵAngularFireSchedulers, ɵgetDefaultInstanceOf } from '@angular/fire';\nimport { FirebaseApp, FirebaseApps } from '@angular/fire/app';\nimport { AppCheckInstances } from '@angular/fire/app-check';\nimport { registerVersion } from 'firebase/app';\nimport { VertexAI as FirebaseVertexAI } from 'firebase/vertexai';\nimport { VERTEX_AI_PROVIDER_NAME, VertexAI, VertexAIInstances } from './vertexai';\n\nexport const PROVIDED_VERTEX_AI_INSTANCES = new InjectionToken<VertexAI[]>('angularfire2.vertexai-instances');\n\nexport function defaultVertexAIInstanceFactory(provided: FirebaseVertexAI[]|undefined, defaultApp: FirebaseApp) {\n const defaultVertexAI = ɵgetDefaultInstanceOf<FirebaseVertexAI>(VERTEX_AI_PROVIDER_NAME, provided, defaultApp);\n return defaultVertexAI && new VertexAI(defaultVertexAI);\n}\n\nexport function vertexAIInstanceFactory(fn: (injector: Injector) => FirebaseVertexAI) {\n return (zone: NgZone, injector: Injector) => {\n const vertexAI = zone.runOutsideAngular(() => fn(injector));\n return new VertexAI(vertexAI);\n };\n}\n\nconst VERTEX_AI_INSTANCES_PROVIDER = {\n provide: VertexAIInstances,\n deps: [\n [new Optional(), PROVIDED_VERTEX_AI_INSTANCES ],\n ]\n};\n\nconst DEFAULT_VERTEX_AI_INSTANCE_PROVIDER = {\n provide: VertexAI,\n useFactory: defaultVertexAIInstanceFactory,\n deps: [\n [new Optional(), PROVIDED_VERTEX_AI_INSTANCES ],\n FirebaseApp,\n ]\n};\n\n@NgModule({\n providers: [\n DEFAULT_VERTEX_AI_INSTANCE_PROVIDER,\n VERTEX_AI_INSTANCES_PROVIDER,\n ]\n})\nexport class VertexAIModule {\n constructor() {\n registerVersion('angularfire', VERSION.full, 'vertexai');\n }\n}\n\nexport function provideVertexAI(fn: (injector: Injector) => FirebaseVertexAI, ...deps: any[]): EnvironmentProviders {\n registerVersion('angularfire', VERSION.full, 'vertexai');\n\n return makeEnvironmentProviders([\n DEFAULT_VERTEX_AI_INSTANCE_PROVIDER,\n VERTEX_AI_INSTANCES_PROVIDER,\n {\n provide: PROVIDED_VERTEX_AI_INSTANCES,\n useFactory: vertexAIInstanceFactory(fn),\n multi: true,\n deps: [\n NgZone,\n Injector,\n ɵAngularFireSchedulers,\n FirebaseApps,\n [new Optional(), AppCheckInstances ],\n ...deps,\n ]\n }\n ]);\n}\n","// DO NOT MODIFY, this file is autogenerated by tools/build.ts\nexport * from 'firebase/vertexai';\nimport { ɵzoneWrap } from '@angular/fire';\nimport {\n getAI as _getAI,\n getGenerativeModel as _getGenerativeModel,\n getImagenModel as _getImagenModel,\n getVertexAI as _getVertexAI\n} from 'firebase/vertexai';\n\nexport const getAI = ɵzoneWrap(_getAI, true);\nexport const getGenerativeModel = ɵzoneWrap(_getGenerativeModel, true);\nexport const getImagenModel = ɵzoneWrap(_getImagenModel, true);\nexport const getVertexAI = ɵzoneWrap(_getVertexAI, true);\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":["ɵgetAllInstancesOf","ɵgetDefaultInstanceOf","ɵAngularFireSchedulers","ɵzoneWrap","_getAI","_getGenerativeModel","_getImagenModel","_getVertexAI"],"mappings":"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"}
@@ -1 +0,0 @@
1
- var c=Object.defineProperty;var m=Object.getOwnPropertyDescriptor;var x=Object.getOwnPropertyNames;var a=Object.prototype.hasOwnProperty;var i=(t,e)=>{for(var r in e)c(t,r,{get:e[r],enumerable:!0})},p=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of x(e))!a.call(t,o)&&o!==r&&c(t,o,{get:()=>e[o],enumerable:!(n=m(e,o))||n.enumerable});return t};var u=t=>p(c({},"__esModule",{value:!0}),t);var l={};i(l,{ngPostUpdate:()=>h});module.exports=u(l);var h=()=>(t,e)=>t;0&&(module.exports={ngPostUpdate});
@@ -1,33 +0,0 @@
1
- import * as rxjs from 'rxjs';
2
- import * as _firebase_ai from '@firebase/ai';
3
- import { VertexAI as VertexAI$1, getAI as getAI$1, getGenerativeModel as getGenerativeModel$1, getImagenModel as getImagenModel$1, getVertexAI as getVertexAI$1 } from 'firebase/vertexai';
4
- export * from 'firebase/vertexai';
5
- import * as i0 from '@angular/core';
6
- import { Injector, EnvironmentProviders } from '@angular/core';
7
-
8
- interface VertexAI extends VertexAI$1 {
9
- }
10
- declare class VertexAI {
11
- constructor(vertexai: VertexAI$1);
12
- }
13
- interface VertexAIInstances extends Array<VertexAI$1> {
14
- }
15
- declare class VertexAIInstances {
16
- constructor();
17
- }
18
- declare const vertexAIInstance$: rxjs.Observable<_firebase_ai.AI>;
19
-
20
- declare class VertexAIModule {
21
- constructor();
22
- static ɵfac: i0.ɵɵFactoryDeclaration<VertexAIModule, never>;
23
- static ɵmod: i0.ɵɵNgModuleDeclaration<VertexAIModule, never, never, never>;
24
- static ɵinj: i0.ɵɵInjectorDeclaration<VertexAIModule>;
25
- }
26
- declare function provideVertexAI(fn: (injector: Injector) => VertexAI$1, ...deps: any[]): EnvironmentProviders;
27
-
28
- declare const getAI: typeof getAI$1;
29
- declare const getGenerativeModel: typeof getGenerativeModel$1;
30
- declare const getImagenModel: typeof getImagenModel$1;
31
- declare const getVertexAI: typeof getVertexAI$1;
32
-
33
- export { VertexAI, VertexAIInstances, VertexAIModule, getAI, getGenerativeModel, getImagenModel, getVertexAI, provideVertexAI, vertexAIInstance$ };
@@ -1,3 +0,0 @@
1
- {
2
- "module": "../fesm2022/angular-fire-vertexai.mjs"
3
- }
File without changes