@angular/fire 19.2.0 → 20.0.0-canary.c1c6af9
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
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { Auth } from '@angular/fire/auth';
|
|
2
|
-
import { ActivatedRouteSnapshot, CanActivate, Router, RouterStateSnapshot } from '@angular/router';
|
|
3
|
-
import { User } from 'firebase/auth';
|
|
4
|
-
import { Observable, UnaryFunction } from 'rxjs';
|
|
5
|
-
import * as i0 from "@angular/core";
|
|
6
|
-
export type AuthPipeGenerator = (next: ActivatedRouteSnapshot, state: RouterStateSnapshot) => AuthPipe;
|
|
7
|
-
export type AuthPipe = UnaryFunction<Observable<User | null>, Observable<boolean | string | any[]>>;
|
|
8
|
-
export declare const loggedIn: AuthPipe;
|
|
9
|
-
export declare class AuthGuard implements CanActivate {
|
|
10
|
-
private router;
|
|
11
|
-
private auth;
|
|
12
|
-
constructor(router: Router, auth: Auth);
|
|
13
|
-
canActivate: (next: ActivatedRouteSnapshot, state: RouterStateSnapshot) => Observable<boolean | import("@angular/router").UrlTree>;
|
|
14
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<AuthGuard, never>;
|
|
15
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<AuthGuard>;
|
|
16
|
-
}
|
|
17
|
-
export declare const canActivate: (pipe: AuthPipeGenerator) => {
|
|
18
|
-
canActivate: (typeof AuthGuard)[];
|
|
19
|
-
data: {
|
|
20
|
-
authGuardPipe: AuthPipeGenerator;
|
|
21
|
-
};
|
|
22
|
-
};
|
|
23
|
-
export declare const isNotAnonymous: AuthPipe;
|
|
24
|
-
export declare const idTokenResult: import("rxjs").OperatorFunction<User, import("@firebase/auth").IdTokenResult>;
|
|
25
|
-
export declare const emailVerified: AuthPipe;
|
|
26
|
-
export declare const customClaims: UnaryFunction<Observable<User>, Observable<any[] | import("@firebase/auth").ParsedToken>>;
|
|
27
|
-
export declare const hasCustomClaim: (claim: string) => AuthPipe;
|
|
28
|
-
export declare const redirectUnauthorizedTo: (redirect: string | any[]) => AuthPipe;
|
|
29
|
-
export declare const redirectLoggedInTo: (redirect: string | any[]) => AuthPipe;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import * as i0 from "@angular/core";
|
|
2
|
-
export declare class AuthGuardModule {
|
|
3
|
-
constructor();
|
|
4
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<AuthGuardModule, never>;
|
|
5
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<AuthGuardModule, never, never, never>;
|
|
6
|
-
static ɵinj: i0.ɵɵInjectorDeclaration<AuthGuardModule>;
|
|
7
|
-
}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { InjectionToken, NgZone } from '@angular/core';
|
|
2
|
-
import { ɵAngularFireSchedulers } from '@angular/fire';
|
|
3
|
-
import { ɵPromiseProxy } from '@angular/fire/compat';
|
|
4
|
-
import { FirebaseApp } from '@angular/fire/compat';
|
|
5
|
-
import firebase from 'firebase/compat/app';
|
|
6
|
-
import * as i0 from "@angular/core";
|
|
7
|
-
export type Config = Record<string, any>;
|
|
8
|
-
export declare const COLLECTION_ENABLED: InjectionToken<boolean>;
|
|
9
|
-
export declare const APP_VERSION: InjectionToken<string>;
|
|
10
|
-
export declare const APP_NAME: InjectionToken<string>;
|
|
11
|
-
export declare const DEBUG_MODE: InjectionToken<boolean>;
|
|
12
|
-
export declare const CONFIG: InjectionToken<Config>;
|
|
13
|
-
export interface AngularFireAnalytics extends ɵPromiseProxy<firebase.analytics.Analytics> {
|
|
14
|
-
}
|
|
15
|
-
export declare class AngularFireAnalytics {
|
|
16
|
-
private measurementId;
|
|
17
|
-
private analyticsInitialized;
|
|
18
|
-
updateConfig(config: Config): Promise<void>;
|
|
19
|
-
constructor(app: FirebaseApp, analyticsCollectionEnabled: boolean | null, providedAppVersion: string | null, providedAppName: string | null, debugModeEnabled: boolean | null, providedConfig: Config | null, platformId: Object, zone: NgZone, schedulers: ɵAngularFireSchedulers);
|
|
20
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<AngularFireAnalytics, [null, { optional: true; }, { optional: true; }, { optional: true; }, { optional: true; }, { optional: true; }, null, null, null]>;
|
|
21
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<AngularFireAnalytics>;
|
|
22
|
-
}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { AngularFireAnalytics } from './analytics';
|
|
2
|
-
import { ScreenTrackingService } from './screen-tracking.service';
|
|
3
|
-
import { UserTrackingService } from './user-tracking.service';
|
|
4
|
-
import * as i0 from "@angular/core";
|
|
5
|
-
export declare class AngularFireAnalyticsModule {
|
|
6
|
-
constructor(analytics: AngularFireAnalytics, screenTracking: ScreenTrackingService, userTracking: UserTrackingService);
|
|
7
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<AngularFireAnalyticsModule, [null, { optional: true; }, { optional: true; }]>;
|
|
8
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<AngularFireAnalyticsModule, never, never, never>;
|
|
9
|
-
static ɵinj: i0.ɵɵInjectorDeclaration<AngularFireAnalyticsModule>;
|
|
10
|
-
}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { ComponentFactoryResolver, NgZone, OnDestroy } from '@angular/core';
|
|
2
|
-
import { Title } from '@angular/platform-browser';
|
|
3
|
-
import { Router } from '@angular/router';
|
|
4
|
-
import { AngularFireAnalytics } from './analytics';
|
|
5
|
-
import { UserTrackingService } from './user-tracking.service';
|
|
6
|
-
import * as i0 from "@angular/core";
|
|
7
|
-
export declare class ScreenTrackingService implements OnDestroy {
|
|
8
|
-
private disposable;
|
|
9
|
-
constructor(analytics: AngularFireAnalytics, router: Router, title: Title, componentFactoryResolver: ComponentFactoryResolver, zone: NgZone, userTrackingService: UserTrackingService);
|
|
10
|
-
ngOnDestroy(): void;
|
|
11
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ScreenTrackingService, [null, { optional: true; }, { optional: true; }, null, null, { optional: true; }]>;
|
|
12
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<ScreenTrackingService>;
|
|
13
|
-
}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { NgZone, OnDestroy } from '@angular/core';
|
|
2
|
-
import { AngularFireAuth } from '@angular/fire/compat/auth';
|
|
3
|
-
import { AngularFireAnalytics } from './analytics';
|
|
4
|
-
import * as i0 from "@angular/core";
|
|
5
|
-
export declare class UserTrackingService implements OnDestroy {
|
|
6
|
-
initialized: Promise<void>;
|
|
7
|
-
private disposables;
|
|
8
|
-
constructor(analytics: AngularFireAnalytics, platformId: Object, auth: AngularFireAuth, zone: NgZone);
|
|
9
|
-
ngOnDestroy(): void;
|
|
10
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<UserTrackingService, never>;
|
|
11
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<UserTrackingService>;
|
|
12
|
-
}
|
package/compat/auth/auth.d.ts
DELETED
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
import { InjectionToken, NgZone } from '@angular/core';
|
|
2
|
-
import { ɵAngularFireSchedulers } from '@angular/fire';
|
|
3
|
-
import { AppCheckInstances } from '@angular/fire/app-check';
|
|
4
|
-
import { ɵPromiseProxy } from '@angular/fire/compat';
|
|
5
|
-
import { FirebaseApp } from '@angular/fire/compat';
|
|
6
|
-
import { FirebaseOptions } from 'firebase/app';
|
|
7
|
-
import firebase from 'firebase/compat/app';
|
|
8
|
-
import { Observable } from 'rxjs';
|
|
9
|
-
import * as i0 from "@angular/core";
|
|
10
|
-
export interface AngularFireAuth extends ɵPromiseProxy<firebase.auth.Auth> {
|
|
11
|
-
}
|
|
12
|
-
type UseEmulatorArguments = Parameters<firebase.auth.Auth['useEmulator']>;
|
|
13
|
-
export declare const USE_EMULATOR: InjectionToken<[url: string]>;
|
|
14
|
-
export declare const SETTINGS: InjectionToken<firebase.auth.AuthSettings>;
|
|
15
|
-
export declare const TENANT_ID: InjectionToken<string>;
|
|
16
|
-
export declare const LANGUAGE_CODE: InjectionToken<string>;
|
|
17
|
-
export declare const USE_DEVICE_LANGUAGE: InjectionToken<boolean>;
|
|
18
|
-
export declare const PERSISTENCE: InjectionToken<string>;
|
|
19
|
-
export declare const ɵauthFactory: (app: FirebaseApp, zone: NgZone, useEmulator: UseEmulatorArguments | null, tenantId: string, languageCode: string | null, useDeviceLanguage: boolean | null, settings: firebase.auth.AuthSettings | null, persistence: string | null) => firebase.auth.Auth;
|
|
20
|
-
export declare class AngularFireAuth {
|
|
21
|
-
private readonly injector;
|
|
22
|
-
/**
|
|
23
|
-
* Observable of authentication state; as of Firebase 4.0 this is only triggered via sign-in/out
|
|
24
|
-
*/
|
|
25
|
-
readonly authState: Observable<firebase.User | null>;
|
|
26
|
-
/**
|
|
27
|
-
* Observable of the currently signed-in user's JWT token used to identify the user to a Firebase service (or null).
|
|
28
|
-
*/
|
|
29
|
-
readonly idToken: Observable<string | null>;
|
|
30
|
-
/**
|
|
31
|
-
* Observable of the currently signed-in user (or null).
|
|
32
|
-
*/
|
|
33
|
-
readonly user: Observable<firebase.User | null>;
|
|
34
|
-
/**
|
|
35
|
-
* Observable of the currently signed-in user's IdTokenResult object which contains the ID token JWT string and other
|
|
36
|
-
* helper properties for getting different data associated with the token as well as all the decoded payload claims
|
|
37
|
-
* (or null).
|
|
38
|
-
*/
|
|
39
|
-
readonly idTokenResult: Observable<firebase.auth.IdTokenResult | null>;
|
|
40
|
-
/**
|
|
41
|
-
* Observable of the currently signed-in user's credential, or null
|
|
42
|
-
*/
|
|
43
|
-
readonly credential: Observable<Required<firebase.auth.UserCredential> | null>;
|
|
44
|
-
constructor(options: FirebaseOptions, name: string | null | undefined, platformId: Object, zone: NgZone, schedulers: ɵAngularFireSchedulers, useEmulator: any, // can't use the tuple here
|
|
45
|
-
settings: any, // can't use firebase.auth.AuthSettings here
|
|
46
|
-
tenantId: string | null, languageCode: string | null, useDeviceLanguage: boolean | null, persistence: string | null, _appCheckInstances: AppCheckInstances);
|
|
47
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<AngularFireAuth, [null, { optional: true; }, null, null, null, { optional: true; }, { optional: true; }, { optional: true; }, { optional: true; }, { optional: true; }, { optional: true; }, { optional: true; }]>;
|
|
48
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<AngularFireAuth>;
|
|
49
|
-
}
|
|
50
|
-
export {};
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import * as i0 from "@angular/core";
|
|
2
|
-
export declare class AngularFireAuthModule {
|
|
3
|
-
constructor();
|
|
4
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<AngularFireAuthModule, never>;
|
|
5
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<AngularFireAuthModule, never, never, never>;
|
|
6
|
-
static ɵinj: i0.ɵɵInjectorDeclaration<AngularFireAuthModule>;
|
|
7
|
-
}
|
package/compat/auth/base.d.ts
DELETED
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
export declare const proxyPolyfillCompat: {
|
|
2
|
-
name: any;
|
|
3
|
-
config: any;
|
|
4
|
-
emulatorConfig: any;
|
|
5
|
-
app: any;
|
|
6
|
-
applyActionCode: any;
|
|
7
|
-
checkActionCode: any;
|
|
8
|
-
confirmPasswordReset: any;
|
|
9
|
-
createUserWithEmailAndPassword: any;
|
|
10
|
-
currentUser: any;
|
|
11
|
-
fetchSignInMethodsForEmail: any;
|
|
12
|
-
isSignInWithEmailLink: any;
|
|
13
|
-
getRedirectResult: any;
|
|
14
|
-
languageCode: any;
|
|
15
|
-
settings: any;
|
|
16
|
-
onAuthStateChanged: any;
|
|
17
|
-
onIdTokenChanged: any;
|
|
18
|
-
sendSignInLinkToEmail: any;
|
|
19
|
-
sendPasswordResetEmail: any;
|
|
20
|
-
setPersistence: any;
|
|
21
|
-
signInAndRetrieveDataWithCredential: any;
|
|
22
|
-
signInAnonymously: any;
|
|
23
|
-
signInWithCredential: any;
|
|
24
|
-
signInWithCustomToken: any;
|
|
25
|
-
signInWithEmailAndPassword: any;
|
|
26
|
-
signInWithPhoneNumber: any;
|
|
27
|
-
signInWithEmailLink: any;
|
|
28
|
-
signInWithPopup: any;
|
|
29
|
-
signInWithRedirect: any;
|
|
30
|
-
signOut: any;
|
|
31
|
-
tenantId: any;
|
|
32
|
-
updateCurrentUser: any;
|
|
33
|
-
useDeviceLanguage: any;
|
|
34
|
-
useEmulator: any;
|
|
35
|
-
verifyPasswordResetCode: any;
|
|
36
|
-
};
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import { AngularFireAuth } from '@angular/fire/compat/auth';
|
|
2
|
-
import { ActivatedRouteSnapshot, CanActivate, Router, RouterStateSnapshot } from '@angular/router';
|
|
3
|
-
import firebase from 'firebase/compat/app';
|
|
4
|
-
import { Observable, UnaryFunction } from 'rxjs';
|
|
5
|
-
import * as i0 from "@angular/core";
|
|
6
|
-
export type AuthPipeGenerator = (next: ActivatedRouteSnapshot, state: RouterStateSnapshot) => AuthPipe;
|
|
7
|
-
export type AuthPipe = UnaryFunction<Observable<firebase.User | null>, Observable<boolean | string | any[]>>;
|
|
8
|
-
export declare const loggedIn: AuthPipe;
|
|
9
|
-
export declare class AngularFireAuthGuard implements CanActivate {
|
|
10
|
-
private router;
|
|
11
|
-
private auth;
|
|
12
|
-
constructor(router: Router, auth: AngularFireAuth);
|
|
13
|
-
canActivate: (next: ActivatedRouteSnapshot, state: RouterStateSnapshot) => Observable<boolean | import("@angular/router").UrlTree>;
|
|
14
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<AngularFireAuthGuard, never>;
|
|
15
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<AngularFireAuthGuard>;
|
|
16
|
-
}
|
|
17
|
-
export declare const canActivate: (pipe: AuthPipeGenerator) => {
|
|
18
|
-
canActivate: (typeof AngularFireAuthGuard)[];
|
|
19
|
-
data: {
|
|
20
|
-
authGuardPipe: AuthPipeGenerator;
|
|
21
|
-
};
|
|
22
|
-
};
|
|
23
|
-
export declare const isNotAnonymous: AuthPipe;
|
|
24
|
-
export declare const idTokenResult: import("rxjs").OperatorFunction<firebase.User, firebase.auth.IdTokenResult>;
|
|
25
|
-
export declare const emailVerified: AuthPipe;
|
|
26
|
-
export declare const customClaims: UnaryFunction<Observable<firebase.User>, Observable<any[] | {
|
|
27
|
-
[key: string]: any;
|
|
28
|
-
}>>;
|
|
29
|
-
export declare const hasCustomClaim: (claim: string) => AuthPipe;
|
|
30
|
-
export declare const redirectUnauthorizedTo: (redirect: string | any[]) => AuthPipe;
|
|
31
|
-
export declare const redirectLoggedInTo: (redirect: string | any[]) => AuthPipe;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import * as i0 from "@angular/core";
|
|
2
|
-
export declare class AngularFireAuthGuardModule {
|
|
3
|
-
constructor();
|
|
4
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<AngularFireAuthGuardModule, never>;
|
|
5
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<AngularFireAuthGuardModule, never, never, never>;
|
|
6
|
-
static ɵinj: i0.ɵɵInjectorDeclaration<AngularFireAuthGuardModule>;
|
|
7
|
-
}
|
package/compat/cache.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function ɵcacheInstance<T>(cacheKey: any, moduleName: string, appName: string, fn: () => T, deps: any): T;
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import { InjectionToken, NgZone } from '@angular/core';
|
|
2
|
-
import { ɵAngularFireSchedulers } from '@angular/fire';
|
|
3
|
-
import { AppCheckInstances } from '@angular/fire/app-check';
|
|
4
|
-
import { AngularFireAuth } from '@angular/fire/compat/auth';
|
|
5
|
-
import { FirebaseOptions } from 'firebase/app';
|
|
6
|
-
import firebase from 'firebase/compat/app';
|
|
7
|
-
import { AngularFireList, AngularFireObject, PathReference, QueryFn } from './interfaces';
|
|
8
|
-
import 'firebase/compat/auth';
|
|
9
|
-
import 'firebase/compat/database';
|
|
10
|
-
import * as i0 from "@angular/core";
|
|
11
|
-
export declare const URL: InjectionToken<string>;
|
|
12
|
-
export declare const USE_EMULATOR: InjectionToken<[host: string, port: number, options?: {
|
|
13
|
-
mockUserToken?: firebase.database.EmulatorMockTokenOptions | string;
|
|
14
|
-
}]>;
|
|
15
|
-
export declare class AngularFireDatabase {
|
|
16
|
-
schedulers: ɵAngularFireSchedulers;
|
|
17
|
-
readonly database: firebase.database.Database;
|
|
18
|
-
private readonly injector;
|
|
19
|
-
constructor(options: FirebaseOptions, name: string | null | undefined, databaseURL: string | null, platformId: Object, zone: NgZone, schedulers: ɵAngularFireSchedulers, _useEmulator: any, // tuple isn't working here
|
|
20
|
-
auth: AngularFireAuth, useAuthEmulator: any, authSettings: any, // can't use firebase.auth.AuthSettings here
|
|
21
|
-
tenantId: string | null, languageCode: string | null, useDeviceLanguage: boolean | null, persistence: string | null, _appCheckInstances: AppCheckInstances);
|
|
22
|
-
list<T>(pathOrRef: PathReference, queryFn?: QueryFn): AngularFireList<T>;
|
|
23
|
-
object<T>(pathOrRef: PathReference): AngularFireObject<T>;
|
|
24
|
-
createPushId(): string;
|
|
25
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<AngularFireDatabase, [null, { optional: true; }, { optional: true; }, null, null, null, { optional: true; }, { optional: true; }, { optional: true; }, { optional: true; }, { optional: true; }, { optional: true; }, { optional: true; }, { optional: true; }, { optional: true; }]>;
|
|
26
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<AngularFireDatabase>;
|
|
27
|
-
}
|
|
28
|
-
export { PathReference, DatabaseSnapshot, ChildEvent, ListenEvent, QueryFn, AngularFireList, AngularFireObject, AngularFireAction, Action, SnapshotAction } from './interfaces';
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import * as i0 from "@angular/core";
|
|
2
|
-
export declare class AngularFireDatabaseModule {
|
|
3
|
-
constructor();
|
|
4
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<AngularFireDatabaseModule, never>;
|
|
5
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<AngularFireDatabaseModule, never, never, never>;
|
|
6
|
-
static ɵinj: i0.ɵɵInjectorDeclaration<AngularFireDatabaseModule>;
|
|
7
|
-
}
|
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
import firebase from 'firebase/compat/app';
|
|
2
|
-
import { Observable } from 'rxjs';
|
|
3
|
-
export type FirebaseOperation = string | firebase.database.Reference | firebase.database.DataSnapshot;
|
|
4
|
-
export interface AngularFireList<T> {
|
|
5
|
-
query: DatabaseQuery;
|
|
6
|
-
valueChanges(events?: ChildEvent[], options?: unknown): Observable<T[]>;
|
|
7
|
-
valueChanges<K extends string>(events?: ChildEvent[], options?: {
|
|
8
|
-
idField: K;
|
|
9
|
-
}): Observable<(T & {
|
|
10
|
-
[T in K]?: string;
|
|
11
|
-
})[]>;
|
|
12
|
-
snapshotChanges(events?: ChildEvent[]): Observable<SnapshotAction<T>[]>;
|
|
13
|
-
stateChanges(events?: ChildEvent[]): Observable<SnapshotAction<T>>;
|
|
14
|
-
auditTrail(events?: ChildEvent[]): Observable<SnapshotAction<T>[]>;
|
|
15
|
-
update(item: FirebaseOperation, data: Partial<T>): Promise<void>;
|
|
16
|
-
set(item: FirebaseOperation, data: T): Promise<void>;
|
|
17
|
-
push(data: T): firebase.database.ThenableReference;
|
|
18
|
-
remove(item?: FirebaseOperation): Promise<void>;
|
|
19
|
-
}
|
|
20
|
-
export interface AngularFireObject<T> {
|
|
21
|
-
query: DatabaseQuery;
|
|
22
|
-
valueChanges(): Observable<T | null>;
|
|
23
|
-
snapshotChanges(): Observable<SnapshotAction<T>>;
|
|
24
|
-
update(data: Partial<T>): Promise<void>;
|
|
25
|
-
set(data: T): Promise<void>;
|
|
26
|
-
remove(): Promise<void>;
|
|
27
|
-
}
|
|
28
|
-
export interface FirebaseOperationCases {
|
|
29
|
-
stringCase: () => Promise<void>;
|
|
30
|
-
firebaseCase?: () => Promise<void>;
|
|
31
|
-
snapshotCase?: () => Promise<void>;
|
|
32
|
-
unwrappedSnapshotCase?: () => Promise<void>;
|
|
33
|
-
}
|
|
34
|
-
export type QueryFn = (ref: DatabaseReference) => DatabaseQuery;
|
|
35
|
-
export type ChildEvent = 'child_added' | 'child_removed' | 'child_changed' | 'child_moved';
|
|
36
|
-
export type ListenEvent = 'value' | ChildEvent;
|
|
37
|
-
export interface Action<T> {
|
|
38
|
-
type: ListenEvent;
|
|
39
|
-
payload: T;
|
|
40
|
-
}
|
|
41
|
-
export interface AngularFireAction<T> extends Action<T> {
|
|
42
|
-
prevKey: string | null | undefined;
|
|
43
|
-
key: string | null;
|
|
44
|
-
}
|
|
45
|
-
export type SnapshotAction<T> = AngularFireAction<DatabaseSnapshot<T>>;
|
|
46
|
-
export type Primitive = number | string | boolean;
|
|
47
|
-
export interface DatabaseSnapshotExists<T> extends firebase.database.DataSnapshot {
|
|
48
|
-
exists(): true;
|
|
49
|
-
val(): T;
|
|
50
|
-
forEach(action: (a: DatabaseSnapshot<T>) => boolean): boolean;
|
|
51
|
-
}
|
|
52
|
-
export interface DatabaseSnapshotDoesNotExist<T> extends firebase.database.DataSnapshot {
|
|
53
|
-
exists(): false;
|
|
54
|
-
val(): null;
|
|
55
|
-
forEach(action: (a: DatabaseSnapshot<T>) => boolean): boolean;
|
|
56
|
-
}
|
|
57
|
-
export type DatabaseSnapshot<T> = DatabaseSnapshotExists<T> | DatabaseSnapshotDoesNotExist<T>;
|
|
58
|
-
export type DatabaseReference = firebase.database.Reference;
|
|
59
|
-
export type DatabaseQuery = firebase.database.Query;
|
|
60
|
-
export type DataSnapshot = firebase.database.DataSnapshot;
|
|
61
|
-
export type QueryReference = DatabaseReference | DatabaseQuery;
|
|
62
|
-
export type PathReference = QueryReference | string;
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import { Observable, SchedulerLike } from 'rxjs';
|
|
2
|
-
import { ChildEvent, DatabaseQuery, SnapshotAction } from '../interfaces';
|
|
3
|
-
export declare function listChanges<T = any>(ref: DatabaseQuery, events: ChildEvent[], scheduler?: SchedulerLike): Observable<SnapshotAction<T>[]>;
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import { Injector } from '@angular/core';
|
|
2
|
-
import { AngularFireDatabase } from '../database';
|
|
3
|
-
import { AngularFireList, DatabaseQuery } from '../interfaces';
|
|
4
|
-
export declare function createListReference<T = any>(query: DatabaseQuery, afDatabase: AngularFireDatabase, injector?: Injector): AngularFireList<T>;
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import { Observable, SchedulerLike } from 'rxjs';
|
|
2
|
-
import { ChildEvent, DatabaseQuery, SnapshotAction } from '../interfaces';
|
|
3
|
-
export declare function snapshotChanges<T>(query: DatabaseQuery, events?: ChildEvent[], scheduler?: SchedulerLike): Observable<SnapshotAction<T>[]>;
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import { SchedulerLike } from 'rxjs';
|
|
2
|
-
import { ChildEvent, DatabaseQuery } from '../interfaces';
|
|
3
|
-
export declare function stateChanges<T>(query: DatabaseQuery, events?: ChildEvent[], scheduler?: SchedulerLike): import("rxjs").Observable<import("../interfaces").AngularFireAction<import("../interfaces").DatabaseSnapshot<T>>>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function validateEventsArray(events?: any[]): any[];
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import { Injector } from '@angular/core';
|
|
2
|
-
import { AngularFireDatabase } from '../database';
|
|
3
|
-
import { AngularFireObject, DatabaseQuery } from '../interfaces';
|
|
4
|
-
export declare function createObjectReference<T = any>(query: DatabaseQuery, afDatabase: AngularFireDatabase, injector?: Injector): AngularFireObject<T>;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { Observable, SchedulerLike } from 'rxjs';
|
|
2
|
-
import { AngularFireAction, DatabaseQuery, DatabaseSnapshot, ListenEvent } from '../interfaces';
|
|
3
|
-
/**
|
|
4
|
-
* Create an observable from a Database Reference or Database Query.
|
|
5
|
-
* @param ref Database Reference
|
|
6
|
-
* @param event Listen event type ('value', 'added', 'changed', 'removed', 'moved')
|
|
7
|
-
* @param listenType 'on' or 'once'
|
|
8
|
-
* @param scheduler - Rxjs scheduler
|
|
9
|
-
*/
|
|
10
|
-
export declare function fromRef<T>(ref: DatabaseQuery, event: ListenEvent, listenType?: string, scheduler?: SchedulerLike): Observable<AngularFireAction<DatabaseSnapshot<T>>>;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
export * from './database';
|
|
2
|
-
export * from './list/changes';
|
|
3
|
-
export * from './list/create-reference';
|
|
4
|
-
export * from './list/snapshot-changes';
|
|
5
|
-
export * from './list/state-changes';
|
|
6
|
-
export * from './list/audit-trail';
|
|
7
|
-
export * from './observable/fromRef';
|
|
8
|
-
export * from './database.module';
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import firebase from 'firebase/compat/app';
|
|
2
|
-
import { DatabaseReference, FirebaseOperation, FirebaseOperationCases, PathReference } from './interfaces';
|
|
3
|
-
export declare function isString(value: any): boolean;
|
|
4
|
-
export declare function isFirebaseDataSnapshot(value: any): boolean;
|
|
5
|
-
export declare function isNil(obj: any): boolean;
|
|
6
|
-
export declare function isFirebaseRef(value: any): boolean;
|
|
7
|
-
/**
|
|
8
|
-
* Returns a database reference given a Firebase App and an
|
|
9
|
-
* absolute or relative path.
|
|
10
|
-
* @param database - Firebase Database
|
|
11
|
-
* @param pathRef - Database path, relative or absolute
|
|
12
|
-
*/
|
|
13
|
-
export declare function getRef(database: firebase.database.Database, pathRef: PathReference): DatabaseReference;
|
|
14
|
-
export declare function checkOperationCases(item: FirebaseOperation, cases: FirebaseOperationCases): Promise<void>;
|
package/compat/firebase.app.d.ts
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { InjectionToken, ModuleWithProviders, NgZone } from '@angular/core';
|
|
2
|
-
import { FirebaseAppSettings, FirebaseOptions } from 'firebase/app';
|
|
3
|
-
import { FirebaseApp } from './firebase.app';
|
|
4
|
-
import * as i0 from "@angular/core";
|
|
5
|
-
export declare const FIREBASE_OPTIONS: InjectionToken<FirebaseOptions>;
|
|
6
|
-
export declare const FIREBASE_APP_NAME: InjectionToken<string>;
|
|
7
|
-
export declare function ɵfirebaseAppFactory(options: FirebaseOptions, zone: NgZone, nameOrConfig?: string | FirebaseAppSettings | null): FirebaseApp;
|
|
8
|
-
export declare class AngularFireModule {
|
|
9
|
-
static initializeApp(options: FirebaseOptions, nameOrConfig?: string | FirebaseAppSettings): ModuleWithProviders<AngularFireModule>;
|
|
10
|
-
constructor(platformId: Object);
|
|
11
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<AngularFireModule, never>;
|
|
12
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<AngularFireModule, never, never, never>;
|
|
13
|
-
static ɵinj: i0.ɵɵInjectorDeclaration<AngularFireModule>;
|
|
14
|
-
}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { Observable, SchedulerLike } from 'rxjs';
|
|
2
|
-
import { DocumentChange, DocumentChangeAction, DocumentChangeType, Query } from '../interfaces';
|
|
3
|
-
/**
|
|
4
|
-
* Return a stream of document changes on a query. These results are not in sort order but in
|
|
5
|
-
* order of occurence.
|
|
6
|
-
*/
|
|
7
|
-
export declare function docChanges<T>(query: Query, scheduler?: SchedulerLike): Observable<DocumentChangeAction<T>[]>;
|
|
8
|
-
/**
|
|
9
|
-
* Return a stream of document changes on a query. These results are in sort order.
|
|
10
|
-
*/
|
|
11
|
-
export declare function sortedChanges<T>(query: Query, events: DocumentChangeType[], scheduler?: SchedulerLike): Observable<DocumentChangeAction<T>[]>;
|
|
12
|
-
/**
|
|
13
|
-
* Combines the total result set from the current set of changes from an incoming set
|
|
14
|
-
* of changes.
|
|
15
|
-
*/
|
|
16
|
-
export declare function combineChanges<T>(current: DocumentChange<T>[], changes: DocumentChange<T>[], events: DocumentChangeType[]): DocumentChange<T>[];
|
|
17
|
-
/**
|
|
18
|
-
* Creates a new sorted array from a new change.
|
|
19
|
-
* Build our own because we allow filtering of action types ('added', 'removed', 'modified') before scanning
|
|
20
|
-
* and so we have greater control over change detection (by breaking ===)
|
|
21
|
-
*/
|
|
22
|
-
export declare function combineChange<T>(combined: DocumentChange<T>[], change: DocumentChange<T>): DocumentChange<T>[];
|
|
@@ -1,90 +0,0 @@
|
|
|
1
|
-
import firebase from 'firebase/compat/app';
|
|
2
|
-
import { Observable } from 'rxjs';
|
|
3
|
-
import { AngularFirestoreDocument } from '../document/document';
|
|
4
|
-
import { AngularFirestore } from '../firestore';
|
|
5
|
-
import { CollectionReference, DocumentChangeAction, DocumentChangeType, DocumentData, DocumentReference, Query } from '../interfaces';
|
|
6
|
-
export declare function validateEventsArray(events?: DocumentChangeType[]): firebase.firestore.DocumentChangeType[];
|
|
7
|
-
/**
|
|
8
|
-
* AngularFirestoreCollection service
|
|
9
|
-
*
|
|
10
|
-
* This class creates a reference to a Firestore Collection. A reference and a query are provided in
|
|
11
|
-
* in the constructor. The query can be the unqueried reference if no query is desired.The class
|
|
12
|
-
* is generic which gives you type safety for data update methods and data streaming.
|
|
13
|
-
*
|
|
14
|
-
* This class uses Symbol.observable to transform into Observable using Observable.from().
|
|
15
|
-
*
|
|
16
|
-
* This class is rarely used directly and should be created from the AngularFirestore service.
|
|
17
|
-
*
|
|
18
|
-
* Example:
|
|
19
|
-
*
|
|
20
|
-
* const collectionRef = firebase.firestore.collection('stocks');
|
|
21
|
-
* const query = collectionRef.where('price', '>', '0.01');
|
|
22
|
-
* const fakeStock = new AngularFirestoreCollection<Stock>(collectionRef, query);
|
|
23
|
-
*
|
|
24
|
-
* // NOTE!: the updates are performed on the reference not the query
|
|
25
|
-
* await fakeStock.add({ name: 'FAKE', price: 0.01 });
|
|
26
|
-
*
|
|
27
|
-
* // Subscribe to changes as snapshots. This provides you data updates as well as delta updates.
|
|
28
|
-
* fakeStock.valueChanges().subscribe(value => console.log(value));
|
|
29
|
-
*/
|
|
30
|
-
export declare class AngularFirestoreCollection<T = DocumentData> {
|
|
31
|
-
readonly ref: CollectionReference<T>;
|
|
32
|
-
private readonly query;
|
|
33
|
-
private readonly afs;
|
|
34
|
-
private readonly injector;
|
|
35
|
-
/**
|
|
36
|
-
* The constructor takes in a CollectionReference and Query to provide wrapper methods
|
|
37
|
-
* for data operations and data streaming.
|
|
38
|
-
*
|
|
39
|
-
* Note: Data operation methods are done on the reference not the query. This means
|
|
40
|
-
* when you update data it is not updating data to the window of your query unless
|
|
41
|
-
* the data fits the criteria of the query. See the AssociatedRefence type for details
|
|
42
|
-
* on this implication.
|
|
43
|
-
*/
|
|
44
|
-
constructor(ref: CollectionReference<T>, query: Query<T>, afs: AngularFirestore);
|
|
45
|
-
/**
|
|
46
|
-
* Listen to the latest change in the stream. This method returns changes
|
|
47
|
-
* as they occur and they are not sorted by query order. This allows you to construct
|
|
48
|
-
* your own data structure.
|
|
49
|
-
*/
|
|
50
|
-
stateChanges(events?: DocumentChangeType[]): Observable<DocumentChangeAction<T>[]>;
|
|
51
|
-
/**
|
|
52
|
-
* Create a stream of changes as they occur it time. This method is similar to stateChanges()
|
|
53
|
-
* but it collects each event in an array over time.
|
|
54
|
-
*/
|
|
55
|
-
auditTrail(events?: DocumentChangeType[]): Observable<DocumentChangeAction<T>[]>;
|
|
56
|
-
/**
|
|
57
|
-
* Create a stream of synchronized changes. This method keeps the local array in sorted
|
|
58
|
-
* query order.
|
|
59
|
-
*/
|
|
60
|
-
snapshotChanges(events?: DocumentChangeType[]): Observable<DocumentChangeAction<T>[]>;
|
|
61
|
-
/**
|
|
62
|
-
* Listen to all documents in the collection and its possible query as an Observable.
|
|
63
|
-
*
|
|
64
|
-
* If the `idField` option is provided, document IDs are included and mapped to the
|
|
65
|
-
* provided `idField` property name.
|
|
66
|
-
*/
|
|
67
|
-
valueChanges(): Observable<T[]>;
|
|
68
|
-
valueChanges({}: {}): Observable<T[]>;
|
|
69
|
-
valueChanges<K extends string>(options: {
|
|
70
|
-
idField: K;
|
|
71
|
-
}): Observable<(T & {
|
|
72
|
-
[T in K]: string;
|
|
73
|
-
})[]>;
|
|
74
|
-
/**
|
|
75
|
-
* Retrieve the results of the query once.
|
|
76
|
-
*/
|
|
77
|
-
get(options?: firebase.firestore.GetOptions): Observable<firebase.firestore.QuerySnapshot<T>>;
|
|
78
|
-
/**
|
|
79
|
-
* Add data to a collection reference.
|
|
80
|
-
*
|
|
81
|
-
* Note: Data operation methods are done on the reference not the query. This means
|
|
82
|
-
* when you update data it is not updating data to the window of your query unless
|
|
83
|
-
* the data fits the criteria of the query.
|
|
84
|
-
*/
|
|
85
|
-
add(data: T): Promise<DocumentReference<T>>;
|
|
86
|
-
/**
|
|
87
|
-
* Create a reference to a single document in a collection.
|
|
88
|
-
*/
|
|
89
|
-
doc<T2 = T>(path?: string): AngularFirestoreDocument<T2>;
|
|
90
|
-
}
|