@angular/fire 19.2.0 → 20.0.0-rc.0
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.
- package/ai/index.d.ts +32 -5
- package/analytics/index.d.ts +87 -5
- package/app/index.d.ts +36 -5
- package/app-check/index.d.ts +33 -5
- package/auth/index.d.ts +86 -5
- package/auth-guard/index.d.ts +43 -5
- package/compat/analytics/index.d.ts +52 -5
- package/compat/auth/index.d.ts +58 -5
- package/compat/auth-guard/index.d.ts +44 -5
- package/compat/database/index.d.ts +107 -3
- package/compat/firestore/index.d.ts +450 -3
- package/compat/functions/index.d.ts +31 -5
- package/compat/index.d.ts +57 -5
- package/compat/messaging/index.d.ts +32 -5
- package/compat/performance/index.d.ts +43 -5
- package/compat/remote-config/index.d.ts +64 -5
- package/compat/storage/index.d.ts +104 -3
- package/data-connect/index.d.ts +34 -5
- package/database/index.d.ts +77 -5
- package/fesm2022/angular-fire-ai.mjs +4 -4
- package/fesm2022/angular-fire-analytics.mjs +10 -10
- package/fesm2022/angular-fire-app-check.mjs +4 -4
- package/fesm2022/angular-fire-app.mjs +5 -5
- package/fesm2022/angular-fire-auth-guard.mjs +7 -7
- package/fesm2022/angular-fire-auth.mjs +4 -4
- package/fesm2022/angular-fire-compat-analytics.mjs +14 -14
- package/fesm2022/angular-fire-compat-auth-guard.mjs +7 -7
- package/fesm2022/angular-fire-compat-auth.mjs +8 -8
- package/fesm2022/angular-fire-compat-database.mjs +9 -9
- package/fesm2022/angular-fire-compat-firestore.mjs +9 -9
- package/fesm2022/angular-fire-compat-functions.mjs +8 -8
- package/fesm2022/angular-fire-compat-messaging.mjs +8 -8
- package/fesm2022/angular-fire-compat-messaging.mjs.map +1 -1
- package/fesm2022/angular-fire-compat-performance.mjs +11 -11
- package/fesm2022/angular-fire-compat-remote-config.mjs +8 -8
- package/fesm2022/angular-fire-compat-storage.mjs +16 -16
- package/fesm2022/angular-fire-compat.mjs +5 -5
- package/fesm2022/angular-fire-data-connect.mjs +4 -4
- package/fesm2022/angular-fire-database.mjs +4 -4
- package/fesm2022/angular-fire-firestore-lite.mjs +4 -4
- package/fesm2022/angular-fire-firestore.mjs +4 -4
- package/fesm2022/angular-fire-functions.mjs +4 -4
- package/fesm2022/angular-fire-messaging.mjs +4 -4
- package/fesm2022/angular-fire-performance.mjs +4 -4
- package/fesm2022/angular-fire-remote-config.mjs +4 -4
- package/fesm2022/angular-fire-storage.mjs +4 -4
- package/fesm2022/angular-fire-vertexai.mjs +4 -4
- package/fesm2022/angular-fire.mjs +9 -6
- package/fesm2022/angular-fire.mjs.map +1 -1
- package/firestore/index.d.ts +99 -5
- package/firestore/lite/index.d.ts +77 -5
- package/functions/index.d.ts +35 -5
- package/index.d.ts +34 -3
- package/messaging/index.d.ts +33 -5
- package/package.json +13 -13
- package/performance/index.d.ts +40 -5
- package/publish.sh +1 -1
- package/remote-config/index.d.ts +48 -5
- package/schematics/add/index.js +1 -1
- package/schematics/deploy/actions.js +76 -86
- package/schematics/deploy/builder.js +166 -176
- package/schematics/setup/index.js +147 -162
- package/schematics/update/v7/index.js +1 -1
- package/storage/index.d.ts +47 -5
- package/vertexai/index.d.ts +33 -5
- package/ai/ai.d.ts +0 -13
- package/ai/ai.module.d.ts +0 -15
- package/ai/firebase.d.ts +0 -6
- package/ai/public_api.d.ts +0 -3
- package/analytics/analytics.d.ts +0 -13
- package/analytics/analytics.module.d.ts +0 -17
- package/analytics/firebase.d.ts +0 -14
- package/analytics/public_api.d.ts +0 -5
- package/analytics/screen-tracking.service.d.ts +0 -40
- package/analytics/user-tracking.service.d.ts +0 -11
- package/app/app.d.ts +0 -12
- package/app/app.module.d.ts +0 -14
- package/app/firebase.d.ts +0 -10
- package/app/public_api.d.ts +0 -3
- package/app-check/app-check.d.ts +0 -13
- package/app-check/app-check.module.d.ts +0 -15
- package/app-check/firebase.d.ts +0 -7
- package/app-check/public_api.d.ts +0 -3
- package/auth/auth.d.ts +0 -13
- package/auth/auth.module.d.ts +0 -15
- package/auth/firebase.d.ts +0 -55
- package/auth/public_api.d.ts +0 -4
- package/auth/rxfire.d.ts +0 -4
- package/auth-guard/auth-guard.d.ts +0 -29
- package/auth-guard/auth-guard.module.d.ts +0 -7
- package/auth-guard/public_api.d.ts +0 -2
- package/compat/analytics/analytics.d.ts +0 -22
- package/compat/analytics/analytics.module.d.ts +0 -10
- package/compat/analytics/base.d.ts +0 -8
- package/compat/analytics/public_api.d.ts +0 -4
- package/compat/analytics/screen-tracking.service.d.ts +0 -13
- package/compat/analytics/user-tracking.service.d.ts +0 -12
- package/compat/auth/auth.d.ts +0 -50
- package/compat/auth/auth.module.d.ts +0 -7
- package/compat/auth/base.d.ts +0 -36
- package/compat/auth/public_api.d.ts +0 -3
- package/compat/auth-guard/auth-guard.d.ts +0 -31
- package/compat/auth-guard/auth-guard.module.d.ts +0 -7
- package/compat/auth-guard/public_api.d.ts +0 -2
- package/compat/cache.d.ts +0 -1
- package/compat/database/database.d.ts +0 -28
- package/compat/database/database.module.d.ts +0 -7
- package/compat/database/interfaces.d.ts +0 -62
- package/compat/database/list/audit-trail.d.ts +0 -3
- package/compat/database/list/changes.d.ts +0 -3
- package/compat/database/list/create-reference.d.ts +0 -4
- package/compat/database/list/data-operation.d.ts +0 -2
- package/compat/database/list/remove.d.ts +0 -2
- package/compat/database/list/snapshot-changes.d.ts +0 -3
- package/compat/database/list/state-changes.d.ts +0 -3
- package/compat/database/list/utils.d.ts +0 -1
- package/compat/database/object/create-reference.d.ts +0 -4
- package/compat/database/object/snapshot-changes.d.ts +0 -3
- package/compat/database/observable/fromRef.d.ts +0 -10
- package/compat/database/public_api.d.ts +0 -8
- package/compat/database/utils.d.ts +0 -14
- package/compat/firebase.app.d.ts +0 -6
- package/compat/firebase.app.module.d.ts +0 -14
- package/compat/firestore/collection/changes.d.ts +0 -22
- package/compat/firestore/collection/collection.d.ts +0 -90
- package/compat/firestore/collection-group/collection-group.d.ts +0 -65
- package/compat/firestore/document/document.d.ts +0 -74
- package/compat/firestore/firestore.d.ts +0 -131
- package/compat/firestore/firestore.module.d.ts +0 -13
- package/compat/firestore/interfaces.d.ts +0 -70
- package/compat/firestore/observable/fromRef.d.ts +0 -5
- package/compat/firestore/public_api.d.ts +0 -8
- package/compat/functions/base.d.ts +0 -5
- package/compat/functions/functions.d.ts +0 -21
- package/compat/functions/functions.module.d.ts +0 -7
- package/compat/functions/public_api.d.ts +0 -3
- package/compat/messaging/base.d.ts +0 -6
- package/compat/messaging/messaging.d.ts +0 -22
- package/compat/messaging/messaging.module.d.ts +0 -7
- package/compat/messaging/public_api.d.ts +0 -2
- package/compat/performance/base.d.ts +0 -6
- package/compat/performance/performance.d.ts +0 -26
- package/compat/performance/performance.module.d.ts +0 -9
- package/compat/performance/performance.service.d.ts +0 -9
- package/compat/performance/public_api.d.ts +0 -3
- package/compat/proxy.d.ts +0 -32
- package/compat/public_api.d.ts +0 -4
- package/compat/remote-config/base.d.ts +0 -17
- package/compat/remote-config/interfaces.d.ts +0 -2
- package/compat/remote-config/public_api.d.ts +0 -2
- package/compat/remote-config/remote-config.d.ts +0 -52
- package/compat/remote-config/remote-config.module.d.ts +0 -7
- package/compat/storage/interfaces.d.ts +0 -9
- package/compat/storage/observable/fromTask.d.ts +0 -3
- package/compat/storage/pipes/storageUrl.pipe.d.ts +0 -21
- package/compat/storage/public_api.d.ts +0 -6
- package/compat/storage/ref.d.ts +0 -20
- package/compat/storage/storage.d.ts +0 -31
- package/compat/storage/storage.module.d.ts +0 -8
- package/compat/storage/task.d.ts +0 -18
- package/core.d.ts +0 -6
- package/data-connect/data-connect.d.ts +0 -9
- package/data-connect/data-connect.module.d.ts +0 -13
- package/data-connect/firebase.d.ts +0 -12
- package/data-connect/public_api.d.ts +0 -3
- package/database/database.d.ts +0 -13
- package/database/database.module.d.ts +0 -15
- package/database/firebase.d.ts +0 -40
- package/database/public_api.d.ts +0 -4
- package/database/rxfire.d.ts +0 -10
- package/firestore/firebase.d.ts +0 -60
- package/firestore/firestore.d.ts +0 -13
- package/firestore/firestore.module.d.ts +0 -15
- package/firestore/lite/firebase.d.ts +0 -41
- package/firestore/lite/lite.d.ts +0 -13
- package/firestore/lite/lite.module.d.ts +0 -15
- package/firestore/lite/public_api.d.ts +0 -4
- package/firestore/lite/rxfire.d.ts +0 -9
- package/firestore/public_api.d.ts +0 -4
- package/firestore/rxfire.d.ts +0 -12
- package/functions/firebase.d.ts +0 -6
- package/functions/functions.d.ts +0 -13
- package/functions/functions.module.d.ts +0 -15
- package/functions/public_api.d.ts +0 -4
- package/functions/rxfire.d.ts +0 -2
- package/messaging/firebase.d.ts +0 -7
- package/messaging/messaging.d.ts +0 -13
- package/messaging/messaging.module.d.ts +0 -14
- package/messaging/public_api.d.ts +0 -3
- package/performance/firebase.d.ts +0 -5
- package/performance/performance.d.ts +0 -13
- package/performance/performance.module.d.ts +0 -15
- package/performance/public_api.d.ts +0 -4
- package/performance/rxfire.d.ts +0 -8
- package/public_api.d.ts +0 -2
- package/remote-config/firebase.d.ts +0 -15
- package/remote-config/public_api.d.ts +0 -4
- package/remote-config/remote-config.d.ts +0 -13
- package/remote-config/remote-config.module.d.ts +0 -15
- package/remote-config/rxfire.d.ts +0 -6
- package/storage/firebase.d.ts +0 -17
- package/storage/public_api.d.ts +0 -4
- package/storage/rxfire.d.ts +0 -3
- package/storage/storage.d.ts +0 -13
- package/storage/storage.module.d.ts +0 -15
- package/vertexai/firebase.d.ts +0 -6
- package/vertexai/public_api.d.ts +0 -3
- package/vertexai/vertexai.d.ts +0 -13
- package/vertexai/vertexai.module.d.ts +0 -15
- package/zones.d.ts +0 -26
|
@@ -53,14 +53,14 @@ class StorageModule {
|
|
|
53
53
|
constructor() {
|
|
54
54
|
registerVersion('angularfire', VERSION.full, 'gcs');
|
|
55
55
|
}
|
|
56
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
57
|
-
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
|
58
|
-
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
56
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0", ngImport: i0, type: StorageModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
57
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.0.0", ngImport: i0, type: StorageModule });
|
|
58
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.0.0", ngImport: i0, type: StorageModule, providers: [
|
|
59
59
|
DEFAULT_STORAGE_INSTANCE_PROVIDER,
|
|
60
60
|
STORAGE_INSTANCES_PROVIDER,
|
|
61
61
|
] });
|
|
62
62
|
}
|
|
63
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
63
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0", ngImport: i0, type: StorageModule, decorators: [{
|
|
64
64
|
type: NgModule,
|
|
65
65
|
args: [{
|
|
66
66
|
providers: [
|
|
@@ -51,14 +51,14 @@ class VertexAIModule {
|
|
|
51
51
|
constructor() {
|
|
52
52
|
registerVersion('angularfire', VERSION.full, 'vertexai');
|
|
53
53
|
}
|
|
54
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
55
|
-
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
|
56
|
-
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
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
57
|
DEFAULT_VERTEX_AI_INSTANCE_PROVIDER,
|
|
58
58
|
VERTEX_AI_INSTANCES_PROVIDER,
|
|
59
59
|
] });
|
|
60
60
|
}
|
|
61
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
61
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0", ngImport: i0, type: VertexAIModule, decorators: [{
|
|
62
62
|
type: NgModule,
|
|
63
63
|
args: [{
|
|
64
64
|
providers: [
|
|
@@ -90,10 +90,10 @@ class ɵAngularFireSchedulers {
|
|
|
90
90
|
this.outsideAngular = ngZone.runOutsideAngular(() => new ɵZoneScheduler(typeof Zone === 'undefined' ? undefined : Zone.current));
|
|
91
91
|
this.insideAngular = ngZone.run(() => new ɵZoneScheduler(typeof Zone === 'undefined' ? undefined : Zone.current, asyncScheduler));
|
|
92
92
|
}
|
|
93
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
94
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
93
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0", ngImport: i0, type: ɵAngularFireSchedulers, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
94
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.0.0", ngImport: i0, type: ɵAngularFireSchedulers, providedIn: 'root' });
|
|
95
95
|
}
|
|
96
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
96
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0", ngImport: i0, type: ɵAngularFireSchedulers, decorators: [{
|
|
97
97
|
type: Injectable,
|
|
98
98
|
args: [{
|
|
99
99
|
providedIn: 'root',
|
|
@@ -174,9 +174,12 @@ const ɵzoneWrap = (it, blockUntilFirst, logLevel) => {
|
|
|
174
174
|
}
|
|
175
175
|
else if (ret instanceof Promise) {
|
|
176
176
|
// eslint-disable-next-line @typescript-eslint/no-misused-promises
|
|
177
|
-
return run(() =>
|
|
178
|
-
pendingTasks.run(() => ret)
|
|
179
|
-
|
|
177
|
+
return run(() => {
|
|
178
|
+
pendingTasks.run(() => ret);
|
|
179
|
+
return new Promise((resolve, reject) => {
|
|
180
|
+
ret.then((it) => runInInjectionContext(injector, () => run(() => resolve(it))), (reason) => runInInjectionContext(injector, () => run(() => reject(reason))));
|
|
181
|
+
});
|
|
182
|
+
});
|
|
180
183
|
}
|
|
181
184
|
else if (typeof ret === 'function' && taskDone) {
|
|
182
185
|
// Handle unsubscribe
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"angular-fire.mjs","sources":["../../../src/core.ts","../../../src/zones.ts","../../../src/angular-fire.ts"],"sourcesContent":["import { Version } from '@angular/core';\nimport { ComponentContainer } from '@firebase/component';\nimport { FirebaseApp, getApps } from 'firebase/app';\n\nexport const VERSION = new Version('ANGULARFIRE2_VERSION');\n\nexport const ɵisSupportedError = (module: string) =>\n `The APP_INITIALIZER that is \"making\" isSupported() sync for the sake of convenient DI has not resolved in this\ncontext. Rather than injecting ${module} in the constructor, first ensure that ${module} is supported by calling\n\\`await isSupported()\\`, then retrieve the instance from the injector manually \\`injector.get(${module})\\`.`;\n\n// TODO is there a better way to get at the internal types?\ninterface FirebaseAppWithContainer extends FirebaseApp {\n container: ComponentContainer;\n}\n\nexport function ɵgetDefaultInstanceOf<T= unknown>(identifier: string, provided: T[]|undefined, defaultApp: FirebaseApp): T|undefined {\n if (provided) {\n // Was provide* only called once? If so grab that\n if (provided.length === 1) { return provided[0]; }\n const providedUsingDefaultApp = provided.filter((it: any) => it.app === defaultApp);\n // Was provide* only called once, using the default app? If so use that\n if (providedUsingDefaultApp.length === 1) { return providedUsingDefaultApp[0]; }\n }\n // Grab the default instance from the defaultApp\n const defaultAppWithContainer: FirebaseAppWithContainer = defaultApp as any;\n const provider = defaultAppWithContainer.container.getProvider(identifier as never);\n return provider.getImmediate({ optional: true });\n}\n\nexport const ɵgetAllInstancesOf = <T= unknown>(identifier: string, app?: FirebaseApp): T[] => {\n const apps = app ? [app] : getApps();\n const instances: any[] = [];\n apps.forEach((app: FirebaseAppWithContainer) => {\n const provider: any = app.container.getProvider(identifier as never);\n provider.instances.forEach((instance: any) => {\n if (!instances.includes(instance)) {\n instances.push(instance);\n }\n });\n });\n return instances;\n};\n","/* eslint-disable @typescript-eslint/ban-ts-comment */\nimport {\n EnvironmentInjector,\n Injectable,\n NgZone,\n PendingTasks,\n inject,\n isDevMode,\n runInInjectionContext\n} from '@angular/core';\nimport { pendingUntilEvent } from '@angular/core/rxjs-interop';\nimport {\n Observable,\n SchedulerAction,\n SchedulerLike,\n Subscription,\n asyncScheduler,\n queueScheduler\n} from 'rxjs';\nimport { observeOn, subscribeOn } from 'rxjs/operators';\n\ndeclare const Zone: {current: unknown} | undefined;\n\nexport enum LogLevel {\n \"SILENT\" = 0, \n \"WARN\" = 1,\n \"VERBOSE\" = 2,\n}\n\n\nvar currentLogLevel = (isDevMode() && typeof Zone !== \"undefined\") ? LogLevel.WARN : LogLevel.SILENT;\n\nexport const setLogLevel = (logLevel: LogLevel) => currentLogLevel = logLevel;\n\n/**\n * Schedules tasks so that they are invoked inside the Zone that is passed in the constructor.\n */\nexport class ɵZoneScheduler implements SchedulerLike {\n constructor(private zone: any, private delegate: any = queueScheduler) {\n }\n\n now() {\n return this.delegate.now();\n }\n\n schedule(work: (this: SchedulerAction<any>, state?: any) => void, delay?: number, state?: any): Subscription {\n const targetZone = this.zone;\n // Wrap the specified work function to make sure that if nested scheduling takes place the\n // work is executed in the correct zone\n const workInZone = function(this: SchedulerAction<any>, state: any) {\n if (targetZone) {\n targetZone.runGuarded(() => {\n work.apply(this, [state]);\n });\n } else {\n work.apply(this, [state]);\n }\n };\n\n // Scheduling itself needs to be run in zone to ensure setInterval calls for async scheduling are done\n // inside the correct zone. This scheduler needs to schedule asynchronously always to ensure that\n // firebase emissions are never synchronous. Specifying a delay causes issues with the queueScheduler delegate.\n return this.delegate.schedule(workInZone, delay, state);\n }\n}\n\n@Injectable({\n providedIn: 'root',\n})\nexport class ɵAngularFireSchedulers {\n public readonly outsideAngular: ɵZoneScheduler;\n public readonly insideAngular: ɵZoneScheduler;\n\n constructor() {\n const ngZone = inject(NgZone);\n this.outsideAngular = ngZone.runOutsideAngular(\n () => new ɵZoneScheduler(typeof Zone === 'undefined' ? undefined : Zone.current)\n );\n this.insideAngular = ngZone.run(\n () => new ɵZoneScheduler(\n typeof Zone === 'undefined' ? undefined : Zone.current,\n asyncScheduler\n )\n );\n }\n}\n\nvar alreadyWarned = false;\nfunction warnOutsideInjectionContext(original: any, logLevel: LogLevel) {\n if (!alreadyWarned && (currentLogLevel > LogLevel.SILENT || isDevMode())) {\n alreadyWarned = true;\n console.warn(\"Calling Firebase APIs outside of an Injection context may destabilize your application leading to subtle change-detection and hydration bugs. Find more at https://github.com/angular/angularfire/blob/main/docs/zones.md\");\n }\n if (currentLogLevel >= logLevel) {\n console.warn(`Firebase API called outside injection context: ${original.name}`);\n }\n}\n\nfunction runOutsideAngular<T>(fn: (...args: any[]) => T): T {\n const ngZone = inject(NgZone, { optional: true });\n if (!ngZone) {return fn();}\n return ngZone.runOutsideAngular(() => fn());\n}\n\nfunction run<T>(fn: (...args: any[]) => T): T {\n const ngZone = inject(NgZone, { optional: true });\n if (!ngZone) {return fn();}\n return ngZone.run(() => fn());\n}\n\nconst zoneWrapFn = (\n it: (...args: any[]) => any,\n taskDone: VoidFunction | undefined,\n injector: EnvironmentInjector,\n) => {\n return (...args: any[]) => {\n if (taskDone) {\n setTimeout(taskDone, 0);\n }\n return runInInjectionContext(injector, () => run(() => it.apply(this, args)));\n };\n};\n\nexport const ɵzoneWrap = <T= unknown>(it: T, blockUntilFirst: boolean, logLevel?: LogLevel): T => {\n logLevel ||= blockUntilFirst ? LogLevel.WARN : LogLevel.VERBOSE;\n // function() is needed for the arguments object\n return function () {\n let taskDone: VoidFunction | undefined;\n const _arguments = arguments;\n let schedulers: ɵAngularFireSchedulers;\n let pendingTasks: PendingTasks;\n let injector: EnvironmentInjector;\n try {\n schedulers = inject(ɵAngularFireSchedulers);\n pendingTasks = inject(PendingTasks);\n injector = inject(EnvironmentInjector);\n } catch(e) {\n warnOutsideInjectionContext(it, logLevel);\n return (it as any).apply(this, _arguments);\n }\n // if this is a callback function, e.g, onSnapshot, we should create a pending task and complete it\n // only once one of the callback functions is tripped.\n for (let i = 0; i < arguments.length; i++) {\n if (typeof _arguments[i] === 'function') {\n if (blockUntilFirst) {\n taskDone ||= run(() => pendingTasks.add());\n }\n // TODO create a microtask to track callback functions\n _arguments[i] = zoneWrapFn(_arguments[i], taskDone, injector);\n }\n }\n const ret = runOutsideAngular(() => (it as any).apply(this, _arguments));\n if (!blockUntilFirst) {\n if (ret instanceof Observable) {\n return ret.pipe(\n subscribeOn(schedulers.outsideAngular),\n observeOn(schedulers.insideAngular),\n );\n } else {\n return run(() => ret);\n }\n }\n if (ret instanceof Observable) {\n return ret.pipe(\n subscribeOn(schedulers.outsideAngular),\n observeOn(schedulers.insideAngular),\n pendingUntilEvent(injector),\n );\n } else if (ret instanceof Promise) {\n // eslint-disable-next-line @typescript-eslint/no-misused-promises\n return run(\n () =>\n new Promise((resolve, reject) => {\n pendingTasks.run(() => ret).then(\n (it) => runInInjectionContext(injector, () => run(() => resolve(it))),\n (reason) => runInInjectionContext(injector, () => run(() => reject(reason)))\n );\n }));\n } else if (typeof ret === 'function' && taskDone) {\n // Handle unsubscribe\n // function() is needed for the arguments object\n return function () {\n setTimeout(taskDone, 0);\n return ret.apply(this, arguments);\n };\n } else {\n // TODO how do we handle storage uploads in Zone? and other stuff with cancel() etc?\n return run(() => ret);\n }\n } as any;\n};\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api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OAAO,GAAG,CAAC,IAAI,CACb,WAAW,CAAC,UAAU,CAAC,cAAc,CAAC,EACtC,SAAS,CAAC,UAAU,CAAC,aAAa,CAAC,EACnC,iBAAiB,CAAC,QAAQ,CAAC,CAC5B;;AACI,aAAA,IAAI,GAAG,YAAY,OAAO,EAAE;;AAEjC,YAAA,OAAO,GAAG,CACR,MACE,IAAI,OAAO,CAAC,CAAC,OAAO,EAAE,MAAM,KAAI;gBAC9B,YAAY,CAAC,GAAG,CAAC,MAAM,GAAG,CAAC,CAAC,IAAI,CAC9B,CAAC,EAAE,KAAK,qBAAqB,CAAC,QAAQ,EAAE,MAAM,GAAG,CAAC,MAAM,OAAO,CAAC,EAAE,CAAC,CAAC,CAAC,EACrE,CAAC,MAAM,KAAK,qBAAqB,CAAC,QAAQ,EAAE,MAAM,GAAG,CAAC,MAAM,MAAM,CAAC,MAAM,CAAC,CAAC,CAAC,CAC7E;aACN,CAAC,CAAC;;AACE,aAAA,IAAI,OAAO,GAAG,KAAK,UAAU,IAAI,QAAQ,EAAE;;;YAGhD,OAAO,YAAA;AACL,gBAAA,UAAU,CAAC,QAAQ,EAAE,CAAC,CAAC;gBACvB,OAAO,GAAG,CAAC,KAAK,CAAC,IAAI,EAAE,SAAS,CAAC;AACnC,aAAC;;aACI;;AAEL,YAAA,OAAO,GAAG,CAAC,MAAM,GAAG,CAAC;;AAEzB,KAAQ;AACV;;AC9LA;;AAEG;;;;"}
|
|
1
|
+
{"version":3,"file":"angular-fire.mjs","sources":["../../../src/core.ts","../../../src/zones.ts","../../../src/angular-fire.ts"],"sourcesContent":["import { Version } from '@angular/core';\nimport { ComponentContainer } from '@firebase/component';\nimport { FirebaseApp, getApps } from 'firebase/app';\n\nexport const VERSION = new Version('ANGULARFIRE2_VERSION');\n\nexport const ɵisSupportedError = (module: string) =>\n `The APP_INITIALIZER that is \"making\" isSupported() sync for the sake of convenient DI has not resolved in this\ncontext. Rather than injecting ${module} in the constructor, first ensure that ${module} is supported by calling\n\\`await isSupported()\\`, then retrieve the instance from the injector manually \\`injector.get(${module})\\`.`;\n\n// TODO is there a better way to get at the internal types?\ninterface FirebaseAppWithContainer extends FirebaseApp {\n container: ComponentContainer;\n}\n\nexport function ɵgetDefaultInstanceOf<T= unknown>(identifier: string, provided: T[]|undefined, defaultApp: FirebaseApp): T|undefined {\n if (provided) {\n // Was provide* only called once? If so grab that\n if (provided.length === 1) { return provided[0]; }\n const providedUsingDefaultApp = provided.filter((it: any) => it.app === defaultApp);\n // Was provide* only called once, using the default app? If so use that\n if (providedUsingDefaultApp.length === 1) { return providedUsingDefaultApp[0]; }\n }\n // Grab the default instance from the defaultApp\n const defaultAppWithContainer: FirebaseAppWithContainer = defaultApp as any;\n const provider = defaultAppWithContainer.container.getProvider(identifier as never);\n return provider.getImmediate({ optional: true });\n}\n\nexport const ɵgetAllInstancesOf = <T= unknown>(identifier: string, app?: FirebaseApp): T[] => {\n const apps = app ? [app] : getApps();\n const instances: any[] = [];\n apps.forEach((app: FirebaseAppWithContainer) => {\n const provider: any = app.container.getProvider(identifier as never);\n provider.instances.forEach((instance: any) => {\n if (!instances.includes(instance)) {\n instances.push(instance);\n }\n });\n });\n return instances;\n};\n","/* eslint-disable @typescript-eslint/ban-ts-comment */\nimport {\n EnvironmentInjector,\n Injectable,\n NgZone,\n PendingTasks,\n inject,\n isDevMode,\n runInInjectionContext\n} from '@angular/core';\nimport { pendingUntilEvent } from '@angular/core/rxjs-interop';\nimport {\n Observable,\n SchedulerAction,\n SchedulerLike,\n Subscription,\n asyncScheduler,\n queueScheduler\n} from 'rxjs';\nimport { observeOn, subscribeOn } from 'rxjs/operators';\n\ndeclare const Zone: {current: unknown} | undefined;\n\nexport enum LogLevel {\n \"SILENT\" = 0, \n \"WARN\" = 1,\n \"VERBOSE\" = 2,\n}\n\n\nvar currentLogLevel = (isDevMode() && typeof Zone !== \"undefined\") ? LogLevel.WARN : LogLevel.SILENT;\n\nexport const setLogLevel = (logLevel: LogLevel) => currentLogLevel = logLevel;\n\n/**\n * Schedules tasks so that they are invoked inside the Zone that is passed in the constructor.\n */\nexport class ɵZoneScheduler implements SchedulerLike {\n constructor(private zone: any, private delegate: any = queueScheduler) {\n }\n\n now() {\n return this.delegate.now();\n }\n\n schedule(work: (this: SchedulerAction<any>, state?: any) => void, delay?: number, state?: any): Subscription {\n const targetZone = this.zone;\n // Wrap the specified work function to make sure that if nested scheduling takes place the\n // work is executed in the correct zone\n const workInZone = function(this: SchedulerAction<any>, state: any) {\n if (targetZone) {\n targetZone.runGuarded(() => {\n work.apply(this, [state]);\n });\n } else {\n work.apply(this, [state]);\n }\n };\n\n // Scheduling itself needs to be run in zone to ensure setInterval calls for async scheduling are done\n // inside the correct zone. This scheduler needs to schedule asynchronously always to ensure that\n // firebase emissions are never synchronous. Specifying a delay causes issues with the queueScheduler delegate.\n return this.delegate.schedule(workInZone, delay, state);\n }\n}\n\n@Injectable({\n providedIn: 'root',\n})\nexport class ɵAngularFireSchedulers {\n public readonly outsideAngular: ɵZoneScheduler;\n public readonly insideAngular: ɵZoneScheduler;\n\n constructor() {\n const ngZone = inject(NgZone);\n this.outsideAngular = ngZone.runOutsideAngular(\n () => new ɵZoneScheduler(typeof Zone === 'undefined' ? undefined : Zone.current)\n );\n this.insideAngular = ngZone.run(\n () => new ɵZoneScheduler(\n typeof Zone === 'undefined' ? undefined : Zone.current,\n asyncScheduler\n )\n );\n }\n}\n\nvar alreadyWarned = false;\nfunction warnOutsideInjectionContext(original: any, logLevel: LogLevel) {\n if (!alreadyWarned && (currentLogLevel > LogLevel.SILENT || isDevMode())) {\n alreadyWarned = true;\n console.warn(\"Calling Firebase APIs outside of an Injection context may destabilize your application leading to subtle change-detection and hydration bugs. Find more at https://github.com/angular/angularfire/blob/main/docs/zones.md\");\n }\n if (currentLogLevel >= logLevel) {\n console.warn(`Firebase API called outside injection context: ${original.name}`);\n }\n}\n\nfunction runOutsideAngular<T>(fn: (...args: any[]) => T): T {\n const ngZone = inject(NgZone, { optional: true });\n if (!ngZone) {return fn();}\n return ngZone.runOutsideAngular(() => fn());\n}\n\nfunction run<T>(fn: (...args: any[]) => T): T {\n const ngZone = inject(NgZone, { optional: true });\n if (!ngZone) {return fn();}\n return ngZone.run(() => fn());\n}\n\nconst zoneWrapFn = (\n it: (...args: any[]) => any,\n taskDone: VoidFunction | undefined,\n injector: EnvironmentInjector,\n) => {\n return (...args: any[]) => {\n if (taskDone) {\n setTimeout(taskDone, 0);\n }\n return runInInjectionContext(injector, () => run(() => it.apply(this, args)));\n };\n};\n\nexport const ɵzoneWrap = <T= unknown>(it: T, blockUntilFirst: boolean, logLevel?: LogLevel): T => {\n logLevel ||= blockUntilFirst ? LogLevel.WARN : LogLevel.VERBOSE;\n // function() is needed for the arguments object\n return function () {\n let taskDone: VoidFunction | undefined;\n const _arguments = arguments;\n let schedulers: ɵAngularFireSchedulers;\n let pendingTasks: PendingTasks;\n let injector: EnvironmentInjector;\n try {\n schedulers = inject(ɵAngularFireSchedulers);\n pendingTasks = inject(PendingTasks);\n injector = inject(EnvironmentInjector);\n } catch(e) {\n warnOutsideInjectionContext(it, logLevel);\n return (it as any).apply(this, _arguments);\n }\n // if this is a callback function, e.g, onSnapshot, we should create a pending task and complete it\n // only once one of the callback functions is tripped.\n for (let i = 0; i < arguments.length; i++) {\n if (typeof _arguments[i] === 'function') {\n if (blockUntilFirst) {\n taskDone ||= run(() => pendingTasks.add());\n }\n // TODO create a microtask to track callback functions\n _arguments[i] = zoneWrapFn(_arguments[i], taskDone, injector);\n }\n }\n const ret = runOutsideAngular(() => (it as any).apply(this, _arguments));\n if (!blockUntilFirst) {\n if (ret instanceof Observable) {\n return ret.pipe(\n subscribeOn(schedulers.outsideAngular),\n observeOn(schedulers.insideAngular),\n );\n } else {\n return run(() => ret);\n }\n }\n if (ret instanceof Observable) {\n return ret.pipe(\n subscribeOn(schedulers.outsideAngular),\n observeOn(schedulers.insideAngular),\n pendingUntilEvent(injector),\n );\n } else if (ret instanceof Promise) {\n // eslint-disable-next-line @typescript-eslint/no-misused-promises\n return run(\n () => {\n pendingTasks.run(() => ret);\n return new Promise((resolve, reject) => {\n ret.then(\n (it) => runInInjectionContext(injector, () => run(() => resolve(it))),\n (reason) => runInInjectionContext(injector, () => run(() => reject(reason)))\n )\n });\n });\n } else if (typeof ret === 'function' && taskDone) {\n // Handle unsubscribe\n // function() is needed for the arguments object\n return function () {\n setTimeout(taskDone, 0);\n return ret.apply(this, arguments);\n };\n } else {\n // TODO how do we handle storage uploads in Zone? and other stuff with cancel() etc?\n return run(() => ret);\n }\n } as any;\n};\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":["this"],"mappings":";;;;;;;MAIa,OAAO,GAAG,IAAI,OAAO,CAAC,sBAAsB;MAE5C,iBAAiB,GAAG,CAAC,MAAc,KAC9C,CAAA;AAC+B,+BAAA,EAAA,MAAM,0CAA0C,MAAM,CAAA;AACS,8FAAA,EAAA,MAAM;SAOtF,qBAAqB,CAAa,UAAkB,EAAE,QAAuB,EAAE,UAAuB,EAAA;IACpH,IAAI,QAAQ,EAAE;;AAEZ,QAAA,IAAI,QAAQ,CAAC,MAAM,KAAK,CAAC,EAAE;AAAE,YAAA,OAAO,QAAQ,CAAC,CAAC,CAAC;;AAC/C,QAAA,MAAM,uBAAuB,GAAG,QAAQ,CAAC,MAAM,CAAC,CAAC,EAAO,KAAK,EAAE,CAAC,GAAG,KAAK,UAAU,CAAC;;AAEnF,QAAA,IAAI,uBAAuB,CAAC,MAAM,KAAK,CAAC,EAAE;AAAE,YAAA,OAAO,uBAAuB,CAAC,CAAC,CAAC;;;;IAG/E,MAAM,uBAAuB,GAA6B,UAAiB;IAC3E,MAAM,QAAQ,GAAG,uBAAuB,CAAC,SAAS,CAAC,WAAW,CAAC,UAAmB,CAAC;IACnF,OAAO,QAAQ,CAAC,YAAY,CAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;AAClD;MAEa,kBAAkB,GAAG,CAAa,UAAkB,EAAE,GA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AEL,YAAA,OAAO,GAAG,CAAC,MAAM,GAAG,CAAC;;AAEzB,KAAQ;AACV;;AChMA;;AAEG;;;;"}
|
package/firestore/index.d.ts
CHANGED
|
@@ -1,5 +1,99 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
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';
|
|
3
|
+
export * from 'firebase/firestore';
|
|
4
|
+
import * as i0 from '@angular/core';
|
|
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';
|
|
7
|
+
|
|
8
|
+
interface Firestore extends Firestore$1 {
|
|
9
|
+
}
|
|
10
|
+
declare class Firestore {
|
|
11
|
+
constructor(firestore: Firestore$1);
|
|
12
|
+
}
|
|
13
|
+
interface FirestoreInstances extends Array<Firestore$1> {
|
|
14
|
+
}
|
|
15
|
+
declare class FirestoreInstances {
|
|
16
|
+
constructor();
|
|
17
|
+
}
|
|
18
|
+
declare const firestoreInstance$: rxjs.Observable<Firestore$1>;
|
|
19
|
+
|
|
20
|
+
declare class FirestoreModule {
|
|
21
|
+
constructor();
|
|
22
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FirestoreModule, never>;
|
|
23
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<FirestoreModule, never, never, never>;
|
|
24
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<FirestoreModule>;
|
|
25
|
+
}
|
|
26
|
+
declare function provideFirestore(fn: (injector: Injector) => Firestore$1, ...deps: any[]): EnvironmentProviders;
|
|
27
|
+
|
|
28
|
+
declare const auditTrail: typeof auditTrail$1;
|
|
29
|
+
declare const collectionSnapshots: typeof collection$1;
|
|
30
|
+
declare const collectionChanges: typeof collectionChanges$1;
|
|
31
|
+
declare const collectionCount: typeof collectionCount$1;
|
|
32
|
+
declare const collectionCountSnap: typeof collectionCountSnap$1;
|
|
33
|
+
declare const collectionData: typeof collectionData$1;
|
|
34
|
+
declare const docSnapshots: typeof doc$1;
|
|
35
|
+
declare const docData: typeof docData$1;
|
|
36
|
+
declare const fromRef: typeof fromRef$1;
|
|
37
|
+
declare const snapToData: typeof snapToData$1;
|
|
38
|
+
declare const sortedChanges: typeof sortedChanges$1;
|
|
39
|
+
|
|
40
|
+
declare const addDoc: typeof addDoc$1;
|
|
41
|
+
declare const aggregateFieldEqual: typeof aggregateFieldEqual$1;
|
|
42
|
+
declare const aggregateQuerySnapshotEqual: typeof aggregateQuerySnapshotEqual$1;
|
|
43
|
+
declare const and: typeof and$1;
|
|
44
|
+
declare const clearIndexedDbPersistence: typeof clearIndexedDbPersistence$1;
|
|
45
|
+
declare const collection: typeof collection$2;
|
|
46
|
+
declare const collectionGroup: typeof collectionGroup$1;
|
|
47
|
+
declare const connectFirestoreEmulator: typeof connectFirestoreEmulator$1;
|
|
48
|
+
declare const deleteAllPersistentCacheIndexes: typeof deleteAllPersistentCacheIndexes$1;
|
|
49
|
+
declare const deleteDoc: typeof deleteDoc$1;
|
|
50
|
+
declare const deleteField: typeof deleteField$1;
|
|
51
|
+
declare const disableNetwork: typeof disableNetwork$1;
|
|
52
|
+
declare const disablePersistentCacheIndexAutoCreation: typeof disablePersistentCacheIndexAutoCreation$1;
|
|
53
|
+
declare const doc: typeof doc$2;
|
|
54
|
+
declare const documentId: typeof documentId$1;
|
|
55
|
+
declare const enableIndexedDbPersistence: typeof enableIndexedDbPersistence$1;
|
|
56
|
+
declare const enableMultiTabIndexedDbPersistence: typeof enableMultiTabIndexedDbPersistence$1;
|
|
57
|
+
declare const enableNetwork: typeof enableNetwork$1;
|
|
58
|
+
declare const enablePersistentCacheIndexAutoCreation: typeof enablePersistentCacheIndexAutoCreation$1;
|
|
59
|
+
declare const endAt: typeof endAt$1;
|
|
60
|
+
declare const endBefore: typeof endBefore$1;
|
|
61
|
+
declare const getAggregateFromServer: typeof getAggregateFromServer$1;
|
|
62
|
+
declare const getCountFromServer: typeof getCountFromServer$1;
|
|
63
|
+
declare const getDoc: typeof getDoc$1;
|
|
64
|
+
declare const getDocFromCache: typeof getDocFromCache$1;
|
|
65
|
+
declare const getDocFromServer: typeof getDocFromServer$1;
|
|
66
|
+
declare const getDocs: typeof getDocs$1;
|
|
67
|
+
declare const getDocsFromCache: typeof getDocsFromCache$1;
|
|
68
|
+
declare const getDocsFromServer: typeof getDocsFromServer$1;
|
|
69
|
+
declare const getFirestore: typeof getFirestore$1;
|
|
70
|
+
declare const getPersistentCacheIndexManager: typeof getPersistentCacheIndexManager$1;
|
|
71
|
+
declare const increment: typeof increment$1;
|
|
72
|
+
declare const initializeFirestore: typeof initializeFirestore$1;
|
|
73
|
+
declare const limit: typeof limit$1;
|
|
74
|
+
declare const limitToLast: typeof limitToLast$1;
|
|
75
|
+
declare const loadBundle: typeof loadBundle$1;
|
|
76
|
+
declare const namedQuery: typeof namedQuery$1;
|
|
77
|
+
declare const onSnapshot: typeof onSnapshot$1;
|
|
78
|
+
declare const onSnapshotsInSync: typeof onSnapshotsInSync$1;
|
|
79
|
+
declare const or: typeof or$1;
|
|
80
|
+
declare const orderBy: typeof orderBy$1;
|
|
81
|
+
declare const query: typeof query$1;
|
|
82
|
+
declare const queryEqual: typeof queryEqual$1;
|
|
83
|
+
declare const refEqual: typeof refEqual$1;
|
|
84
|
+
declare const runTransaction: typeof runTransaction$1;
|
|
85
|
+
declare const setDoc: typeof setDoc$1;
|
|
86
|
+
declare const setIndexConfiguration: typeof setIndexConfiguration$1;
|
|
87
|
+
declare const setLogLevel: typeof setLogLevel$1;
|
|
88
|
+
declare const snapshotEqual: typeof snapshotEqual$1;
|
|
89
|
+
declare const startAfter: typeof startAfter$1;
|
|
90
|
+
declare const startAt: typeof startAt$1;
|
|
91
|
+
declare const sum: typeof sum$1;
|
|
92
|
+
declare const terminate: typeof terminate$1;
|
|
93
|
+
declare const updateDoc: typeof updateDoc$1;
|
|
94
|
+
declare const vector: typeof vector$1;
|
|
95
|
+
declare const waitForPendingWrites: typeof waitForPendingWrites$1;
|
|
96
|
+
declare const where: typeof where$1;
|
|
97
|
+
declare const writeBatch: typeof writeBatch$1;
|
|
98
|
+
|
|
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 };
|
|
@@ -1,5 +1,77 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
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, collection as collection$2, collectionGroup as collectionGroup$1, connectFirestoreEmulator as connectFirestoreEmulator$1, deleteDoc as deleteDoc$1, deleteField as deleteField$1, doc as doc$2, documentId as documentId$1, endAt as endAt$1, endBefore as endBefore$1, getAggregate as getAggregate$1, getCount as getCount$1, getDoc as getDoc$1, getDocs as getDocs$1, getFirestore as getFirestore$1, increment as increment$1, initializeFirestore as initializeFirestore$1, limit as limit$1, limitToLast as limitToLast$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, 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, where as where$1, writeBatch as writeBatch$1 } from 'firebase/firestore/lite';
|
|
3
|
+
export * from 'firebase/firestore/lite';
|
|
4
|
+
import * as i0 from '@angular/core';
|
|
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';
|
|
7
|
+
|
|
8
|
+
interface Firestore extends Firestore$1 {
|
|
9
|
+
}
|
|
10
|
+
declare class Firestore {
|
|
11
|
+
constructor(firestore: Firestore$1);
|
|
12
|
+
}
|
|
13
|
+
interface FirestoreInstances extends Array<Firestore$1> {
|
|
14
|
+
}
|
|
15
|
+
declare class FirestoreInstances {
|
|
16
|
+
constructor();
|
|
17
|
+
}
|
|
18
|
+
declare const firestoreInstance$: rxjs.Observable<Firestore$1>;
|
|
19
|
+
|
|
20
|
+
declare class FirestoreModule {
|
|
21
|
+
constructor();
|
|
22
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FirestoreModule, never>;
|
|
23
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<FirestoreModule, never, never, never>;
|
|
24
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<FirestoreModule>;
|
|
25
|
+
}
|
|
26
|
+
declare function provideFirestore(fn: (injector: Injector) => Firestore$1, ...deps: any[]): EnvironmentProviders;
|
|
27
|
+
|
|
28
|
+
declare const collectionSnapshots: typeof collection$1;
|
|
29
|
+
declare const collectionCount: typeof collectionCount$1;
|
|
30
|
+
declare const collectionCountSnap: typeof collectionCountSnap$1;
|
|
31
|
+
declare const collectionData: typeof collectionData$1;
|
|
32
|
+
declare const docSnapshots: typeof doc$1;
|
|
33
|
+
declare const docData: typeof docData$1;
|
|
34
|
+
declare const fromRef: typeof fromRef$1;
|
|
35
|
+
declare const snapToData: typeof snapToData$1;
|
|
36
|
+
|
|
37
|
+
declare const addDoc: typeof addDoc$1;
|
|
38
|
+
declare const aggregateFieldEqual: typeof aggregateFieldEqual$1;
|
|
39
|
+
declare const aggregateQuerySnapshotEqual: typeof aggregateQuerySnapshotEqual$1;
|
|
40
|
+
declare const and: typeof and$1;
|
|
41
|
+
declare const collection: typeof collection$2;
|
|
42
|
+
declare const collectionGroup: typeof collectionGroup$1;
|
|
43
|
+
declare const connectFirestoreEmulator: typeof connectFirestoreEmulator$1;
|
|
44
|
+
declare const deleteDoc: typeof deleteDoc$1;
|
|
45
|
+
declare const deleteField: typeof deleteField$1;
|
|
46
|
+
declare const doc: typeof doc$2;
|
|
47
|
+
declare const documentId: typeof documentId$1;
|
|
48
|
+
declare const endAt: typeof endAt$1;
|
|
49
|
+
declare const endBefore: typeof endBefore$1;
|
|
50
|
+
declare const getAggregate: typeof getAggregate$1;
|
|
51
|
+
declare const getCount: typeof getCount$1;
|
|
52
|
+
declare const getDoc: typeof getDoc$1;
|
|
53
|
+
declare const getDocs: typeof getDocs$1;
|
|
54
|
+
declare const getFirestore: typeof getFirestore$1;
|
|
55
|
+
declare const increment: typeof increment$1;
|
|
56
|
+
declare const initializeFirestore: typeof initializeFirestore$1;
|
|
57
|
+
declare const limit: typeof limit$1;
|
|
58
|
+
declare const limitToLast: typeof limitToLast$1;
|
|
59
|
+
declare const or: typeof or$1;
|
|
60
|
+
declare const orderBy: typeof orderBy$1;
|
|
61
|
+
declare const query: typeof query$1;
|
|
62
|
+
declare const queryEqual: typeof queryEqual$1;
|
|
63
|
+
declare const refEqual: typeof refEqual$1;
|
|
64
|
+
declare const runTransaction: typeof runTransaction$1;
|
|
65
|
+
declare const setDoc: typeof setDoc$1;
|
|
66
|
+
declare const setLogLevel: typeof setLogLevel$1;
|
|
67
|
+
declare const snapshotEqual: typeof snapshotEqual$1;
|
|
68
|
+
declare const startAfter: typeof startAfter$1;
|
|
69
|
+
declare const startAt: typeof startAt$1;
|
|
70
|
+
declare const sum: typeof sum$1;
|
|
71
|
+
declare const terminate: typeof terminate$1;
|
|
72
|
+
declare const updateDoc: typeof updateDoc$1;
|
|
73
|
+
declare const vector: typeof vector$1;
|
|
74
|
+
declare const where: typeof where$1;
|
|
75
|
+
declare const writeBatch: typeof writeBatch$1;
|
|
76
|
+
|
|
77
|
+
export { Firestore, FirestoreInstances, FirestoreModule, addDoc, aggregateFieldEqual, aggregateQuerySnapshotEqual, and, collection, collectionCount, collectionCountSnap, collectionData, collectionGroup, collectionSnapshots, connectFirestoreEmulator, deleteDoc, deleteField, doc, docData, docSnapshots, documentId, endAt, endBefore, firestoreInstance$, fromRef, getAggregate, getCount, getDoc, getDocs, getFirestore, increment, initializeFirestore, limit, limitToLast, or, orderBy, provideFirestore, query, queryEqual, refEqual, runTransaction, setDoc, setLogLevel, snapToData, snapshotEqual, startAfter, startAt, sum, terminate, updateDoc, vector, where, writeBatch };
|
package/functions/index.d.ts
CHANGED
|
@@ -1,5 +1,35 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { Injector, EnvironmentProviders } from '@angular/core';
|
|
3
|
+
import { Functions as Functions$1, connectFunctionsEmulator as connectFunctionsEmulator$1, getFunctions as getFunctions$1, httpsCallable as httpsCallable$2, httpsCallableFromURL as httpsCallableFromURL$1 } from 'firebase/functions';
|
|
4
|
+
export * from 'firebase/functions';
|
|
5
|
+
import * as rxjs from 'rxjs';
|
|
6
|
+
import { httpsCallable as httpsCallable$1 } from 'rxfire/functions';
|
|
7
|
+
|
|
8
|
+
interface Functions extends Functions$1 {
|
|
9
|
+
}
|
|
10
|
+
declare class Functions {
|
|
11
|
+
constructor(functions: Functions$1);
|
|
12
|
+
}
|
|
13
|
+
interface FunctionsInstances extends Array<Functions$1> {
|
|
14
|
+
}
|
|
15
|
+
declare class FunctionsInstances {
|
|
16
|
+
constructor();
|
|
17
|
+
}
|
|
18
|
+
declare const functionInstance$: rxjs.Observable<Functions$1>;
|
|
19
|
+
|
|
20
|
+
declare class FunctionsModule {
|
|
21
|
+
constructor();
|
|
22
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FunctionsModule, never>;
|
|
23
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<FunctionsModule, never, never, never>;
|
|
24
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<FunctionsModule>;
|
|
25
|
+
}
|
|
26
|
+
declare function provideFunctions(fn: (injector: Injector) => Functions$1, ...deps: any[]): EnvironmentProviders;
|
|
27
|
+
|
|
28
|
+
declare const httpsCallableData: typeof httpsCallable$1;
|
|
29
|
+
|
|
30
|
+
declare const connectFunctionsEmulator: typeof connectFunctionsEmulator$1;
|
|
31
|
+
declare const getFunctions: typeof getFunctions$1;
|
|
32
|
+
declare const httpsCallable: typeof httpsCallable$2;
|
|
33
|
+
declare const httpsCallableFromURL: typeof httpsCallableFromURL$1;
|
|
34
|
+
|
|
35
|
+
export { Functions, FunctionsInstances, FunctionsModule, connectFunctionsEmulator, functionInstance$, getFunctions, httpsCallable, httpsCallableData, httpsCallableFromURL, provideFunctions };
|
package/index.d.ts
CHANGED
|
@@ -1,5 +1,36 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { Version } from '@angular/core';
|
|
3
|
+
import { FirebaseApp } from 'firebase/app';
|
|
4
|
+
import { SchedulerLike, SchedulerAction, Subscription } from 'rxjs';
|
|
5
|
+
|
|
6
|
+
declare const VERSION: Version;
|
|
7
|
+
declare const ɵisSupportedError: (module: string) => string;
|
|
8
|
+
declare function ɵgetDefaultInstanceOf<T = unknown>(identifier: string, provided: T[] | undefined, defaultApp: FirebaseApp): T | undefined;
|
|
9
|
+
declare const ɵgetAllInstancesOf: <T = unknown>(identifier: string, app?: FirebaseApp) => T[];
|
|
10
|
+
|
|
11
|
+
declare enum LogLevel {
|
|
12
|
+
"SILENT" = 0,
|
|
13
|
+
"WARN" = 1,
|
|
14
|
+
"VERBOSE" = 2
|
|
15
|
+
}
|
|
16
|
+
declare const setLogLevel: (logLevel: LogLevel) => LogLevel;
|
|
1
17
|
/**
|
|
2
|
-
*
|
|
18
|
+
* Schedules tasks so that they are invoked inside the Zone that is passed in the constructor.
|
|
3
19
|
*/
|
|
4
|
-
|
|
5
|
-
|
|
20
|
+
declare class ɵZoneScheduler implements SchedulerLike {
|
|
21
|
+
private zone;
|
|
22
|
+
private delegate;
|
|
23
|
+
constructor(zone: any, delegate?: any);
|
|
24
|
+
now(): any;
|
|
25
|
+
schedule(work: (this: SchedulerAction<any>, state?: any) => void, delay?: number, state?: any): Subscription;
|
|
26
|
+
}
|
|
27
|
+
declare class ɵAngularFireSchedulers {
|
|
28
|
+
readonly outsideAngular: ɵZoneScheduler;
|
|
29
|
+
readonly insideAngular: ɵZoneScheduler;
|
|
30
|
+
constructor();
|
|
31
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ɵAngularFireSchedulers, never>;
|
|
32
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<ɵAngularFireSchedulers>;
|
|
33
|
+
}
|
|
34
|
+
declare const ɵzoneWrap: <T = unknown>(it: T, blockUntilFirst: boolean, logLevel?: LogLevel) => T;
|
|
35
|
+
|
|
36
|
+
export { LogLevel, VERSION, setLogLevel, ɵAngularFireSchedulers, ɵZoneScheduler, ɵgetAllInstancesOf, ɵgetDefaultInstanceOf, ɵisSupportedError, ɵzoneWrap };
|
package/messaging/index.d.ts
CHANGED
|
@@ -1,5 +1,33 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
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';
|
|
3
|
+
export * from 'firebase/messaging';
|
|
4
|
+
import * as i0 from '@angular/core';
|
|
5
|
+
import { Injector, EnvironmentProviders } from '@angular/core';
|
|
6
|
+
|
|
7
|
+
interface Messaging extends Messaging$1 {
|
|
8
|
+
}
|
|
9
|
+
declare class Messaging {
|
|
10
|
+
constructor(messaging: Messaging$1);
|
|
11
|
+
}
|
|
12
|
+
interface MessagingInstances extends Array<Messaging$1> {
|
|
13
|
+
}
|
|
14
|
+
declare class MessagingInstances {
|
|
15
|
+
constructor();
|
|
16
|
+
}
|
|
17
|
+
declare const messagingInstance$: rxjs.Observable<Messaging$1>;
|
|
18
|
+
|
|
19
|
+
declare class MessagingModule {
|
|
20
|
+
constructor();
|
|
21
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MessagingModule, never>;
|
|
22
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<MessagingModule, never, never, never>;
|
|
23
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<MessagingModule>;
|
|
24
|
+
}
|
|
25
|
+
declare function provideMessaging(fn: (injector: Injector) => Messaging$1, ...deps: any[]): EnvironmentProviders;
|
|
26
|
+
|
|
27
|
+
declare const deleteToken: typeof deleteToken$1;
|
|
28
|
+
declare const getMessaging: typeof getMessaging$1;
|
|
29
|
+
declare const getToken: typeof getToken$1;
|
|
30
|
+
declare const isSupported: typeof isSupported$1;
|
|
31
|
+
declare const onMessage: typeof onMessage$1;
|
|
32
|
+
|
|
33
|
+
export { Messaging, MessagingInstances, MessagingModule, deleteToken, getMessaging, getToken, isSupported, messagingInstance$, onMessage, provideMessaging };
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "../node_modules/ng-packagr/package.schema.json",
|
|
3
3
|
"name": "@angular/fire",
|
|
4
|
-
"version": "
|
|
4
|
+
"version": "20.0.0-rc.0",
|
|
5
5
|
"description": "Angular + Firebase = ❤️",
|
|
6
6
|
"schematics": "./schematics/collection.json",
|
|
7
7
|
"builders": "./schematics/builders.json",
|
|
@@ -23,13 +23,13 @@
|
|
|
23
23
|
"author": "angular,firebase",
|
|
24
24
|
"license": "MIT",
|
|
25
25
|
"peerDependencies": {
|
|
26
|
-
"@angular/common": "^
|
|
27
|
-
"@angular/core": "^
|
|
28
|
-
"@angular/platform-browser": "^
|
|
29
|
-
"@angular/platform-browser-dynamic": "^
|
|
30
|
-
"@angular/platform-server": "^
|
|
26
|
+
"@angular/common": "^20.0.0",
|
|
27
|
+
"@angular/core": "^20.0.0",
|
|
28
|
+
"@angular/platform-browser": "^20.0.0",
|
|
29
|
+
"@angular/platform-browser-dynamic": "^20.0.0",
|
|
30
|
+
"@angular/platform-server": "^20.0.0",
|
|
31
31
|
"rxjs": "~7.8.0",
|
|
32
|
-
"firebase-tools": "^
|
|
32
|
+
"firebase-tools": "^14.0.0"
|
|
33
33
|
},
|
|
34
34
|
"peerDependenciesMeta": {
|
|
35
35
|
"firebase-tools": {
|
|
@@ -42,8 +42,8 @@
|
|
|
42
42
|
"dependencies": {
|
|
43
43
|
"firebase": "^11.8.0",
|
|
44
44
|
"rxfire": "^6.1.0",
|
|
45
|
-
"@angular-devkit/schematics": "^
|
|
46
|
-
"@schematics/angular": "^
|
|
45
|
+
"@angular-devkit/schematics": "^20.0.0",
|
|
46
|
+
"@schematics/angular": "^20.0.0",
|
|
47
47
|
"tslib": "^2.3.0"
|
|
48
48
|
},
|
|
49
49
|
"ng-update": {
|
|
@@ -75,10 +75,6 @@
|
|
|
75
75
|
"types": "./app-check/index.d.ts",
|
|
76
76
|
"default": "./fesm2022/angular-fire-app-check.mjs"
|
|
77
77
|
},
|
|
78
|
-
"./auth": {
|
|
79
|
-
"types": "./auth/index.d.ts",
|
|
80
|
-
"default": "./fesm2022/angular-fire-auth.mjs"
|
|
81
|
-
},
|
|
82
78
|
"./auth-guard": {
|
|
83
79
|
"types": "./auth-guard/index.d.ts",
|
|
84
80
|
"default": "./fesm2022/angular-fire-auth-guard.mjs"
|
|
@@ -87,6 +83,10 @@
|
|
|
87
83
|
"types": "./compat/index.d.ts",
|
|
88
84
|
"default": "./fesm2022/angular-fire-compat.mjs"
|
|
89
85
|
},
|
|
86
|
+
"./auth": {
|
|
87
|
+
"types": "./auth/index.d.ts",
|
|
88
|
+
"default": "./fesm2022/angular-fire-auth.mjs"
|
|
89
|
+
},
|
|
90
90
|
"./data-connect": {
|
|
91
91
|
"types": "./data-connect/index.d.ts",
|
|
92
92
|
"default": "./fesm2022/angular-fire-data-connect.mjs"
|
package/performance/index.d.ts
CHANGED
|
@@ -1,5 +1,40 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
import * as rxjs from 'rxjs';
|
|
2
|
+
import { FirebasePerformance, getPerformance as getPerformance$1, initializePerformance as initializePerformance$1, trace as trace$1 } from 'firebase/performance';
|
|
3
|
+
export * from 'firebase/performance';
|
|
4
|
+
import * as i0 from '@angular/core';
|
|
5
|
+
import { Injector, EnvironmentProviders } from '@angular/core';
|
|
6
|
+
|
|
7
|
+
interface Performance extends FirebasePerformance {
|
|
8
|
+
}
|
|
9
|
+
declare class Performance {
|
|
10
|
+
constructor(performance: FirebasePerformance);
|
|
11
|
+
}
|
|
12
|
+
interface PerformanceInstances extends Array<FirebasePerformance> {
|
|
13
|
+
}
|
|
14
|
+
declare class PerformanceInstances {
|
|
15
|
+
constructor();
|
|
16
|
+
}
|
|
17
|
+
declare const performanceInstance$: rxjs.Observable<FirebasePerformance>;
|
|
18
|
+
|
|
19
|
+
declare class PerformanceModule {
|
|
20
|
+
constructor();
|
|
21
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PerformanceModule, never>;
|
|
22
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<PerformanceModule, never, never, never>;
|
|
23
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<PerformanceModule>;
|
|
24
|
+
}
|
|
25
|
+
declare function providePerformance(fn: (injector: Injector) => FirebasePerformance, ...deps: any[]): EnvironmentProviders;
|
|
26
|
+
|
|
27
|
+
declare const traceUntil: <T = any>(name: string, test: (a: T) => boolean, options?: {
|
|
28
|
+
orComplete?: boolean;
|
|
29
|
+
}) => (source$: rxjs.Observable<T>) => rxjs.Observable<T>;
|
|
30
|
+
declare const traceUntilComplete: <T = any>(name: string) => (source$: rxjs.Observable<T>) => rxjs.Observable<T>;
|
|
31
|
+
declare const traceUntilFirst: <T = any>(name: string) => (source$: rxjs.Observable<T>) => rxjs.Observable<T>;
|
|
32
|
+
declare const traceWhile: <T = any>(name: string, test: (a: T) => boolean, options?: {
|
|
33
|
+
orComplete?: boolean;
|
|
34
|
+
}) => (source$: rxjs.Observable<T>) => rxjs.Observable<T>;
|
|
35
|
+
|
|
36
|
+
declare const getPerformance: typeof getPerformance$1;
|
|
37
|
+
declare const initializePerformance: typeof initializePerformance$1;
|
|
38
|
+
declare const trace: typeof trace$1;
|
|
39
|
+
|
|
40
|
+
export { Performance, PerformanceInstances, PerformanceModule, getPerformance, initializePerformance, performanceInstance$, providePerformance, trace, traceUntil, traceUntilComplete, traceUntilFirst, traceWhile };
|
package/publish.sh
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
npm publish . --tag
|
|
1
|
+
npm publish . --tag next
|
package/remote-config/index.d.ts
CHANGED
|
@@ -1,5 +1,48 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
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';
|
|
3
|
+
export * from 'firebase/remote-config';
|
|
4
|
+
import * as i0 from '@angular/core';
|
|
5
|
+
import { Injector, EnvironmentProviders } from '@angular/core';
|
|
6
|
+
import { getAll as getAll$1, getBoolean as getBoolean$1, getNumber as getNumber$1, getString as getString$1, getValue as getValue$1 } from 'rxfire/remote-config';
|
|
7
|
+
|
|
8
|
+
interface RemoteConfig extends RemoteConfig$1 {
|
|
9
|
+
}
|
|
10
|
+
declare class RemoteConfig {
|
|
11
|
+
constructor(remoteConfig: RemoteConfig$1);
|
|
12
|
+
}
|
|
13
|
+
interface RemoteConfigInstances extends Array<RemoteConfig$1> {
|
|
14
|
+
}
|
|
15
|
+
declare class RemoteConfigInstances {
|
|
16
|
+
constructor();
|
|
17
|
+
}
|
|
18
|
+
declare const remoteConfigInstance$: rxjs.Observable<RemoteConfig$1>;
|
|
19
|
+
|
|
20
|
+
declare class RemoteConfigModule {
|
|
21
|
+
constructor();
|
|
22
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<RemoteConfigModule, never>;
|
|
23
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<RemoteConfigModule, never, never, never>;
|
|
24
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<RemoteConfigModule>;
|
|
25
|
+
}
|
|
26
|
+
declare function provideRemoteConfig(fn: (injector: Injector) => RemoteConfig$1, ...deps: any[]): EnvironmentProviders;
|
|
27
|
+
|
|
28
|
+
declare const getAllChanges: typeof getAll$1;
|
|
29
|
+
declare const getBooleanChanges: typeof getBoolean$1;
|
|
30
|
+
declare const getNumberChanges: typeof getNumber$1;
|
|
31
|
+
declare const getStringChanges: typeof getString$1;
|
|
32
|
+
declare const getValueChanges: typeof getValue$1;
|
|
33
|
+
|
|
34
|
+
declare const activate: typeof activate$1;
|
|
35
|
+
declare const ensureInitialized: typeof ensureInitialized$1;
|
|
36
|
+
declare const fetchAndActivate: typeof fetchAndActivate$1;
|
|
37
|
+
declare const fetchConfig: typeof fetchConfig$1;
|
|
38
|
+
declare const getAll: typeof getAll$2;
|
|
39
|
+
declare const getBoolean: typeof getBoolean$2;
|
|
40
|
+
declare const getNumber: typeof getNumber$2;
|
|
41
|
+
declare const getRemoteConfig: typeof getRemoteConfig$1;
|
|
42
|
+
declare const getString: typeof getString$2;
|
|
43
|
+
declare const getValue: typeof getValue$2;
|
|
44
|
+
declare const isSupported: typeof isSupported$1;
|
|
45
|
+
declare const setCustomSignals: typeof setCustomSignals$1;
|
|
46
|
+
declare const setLogLevel: typeof setLogLevel$1;
|
|
47
|
+
|
|
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 };
|