summaryrefslogtreecommitdiff
path: root/frontend-old/node_modules/@firebase/app-types
diff options
context:
space:
mode:
authoraltaf-creator <dev@altafcreator.com>2025-11-16 19:08:29 +0800
committeraltaf-creator <dev@altafcreator.com>2025-11-16 19:08:29 +0800
commit434aa8343fdcbb4d5002f934979913c099489bee (patch)
tree55bab4ec5a6151be57797d34f61faf5ea744471b /frontend-old/node_modules/@firebase/app-types
parent893c388d4e99442a36005e5971a87730623f946e (diff)
sdk, del
Diffstat (limited to 'frontend-old/node_modules/@firebase/app-types')
-rw-r--r--frontend-old/node_modules/@firebase/app-types/README.md3
-rw-r--r--frontend-old/node_modules/@firebase/app-types/index.d.ts129
-rw-r--r--frontend-old/node_modules/@firebase/app-types/package.json29
-rw-r--r--frontend-old/node_modules/@firebase/app-types/private.d.ts165
4 files changed, 0 insertions, 326 deletions
diff --git a/frontend-old/node_modules/@firebase/app-types/README.md b/frontend-old/node_modules/@firebase/app-types/README.md
deleted file mode 100644
index 931932c..0000000
--- a/frontend-old/node_modules/@firebase/app-types/README.md
+++ /dev/null
@@ -1,3 +0,0 @@
-# @firebase/app-types
-
-**This package is not intended for direct usage, and should only be used via the officially supported [firebase](https://www.npmjs.com/package/firebase) package.**
diff --git a/frontend-old/node_modules/@firebase/app-types/index.d.ts b/frontend-old/node_modules/@firebase/app-types/index.d.ts
deleted file mode 100644
index 72b8fa6..0000000
--- a/frontend-old/node_modules/@firebase/app-types/index.d.ts
+++ /dev/null
@@ -1,129 +0,0 @@
-/**
- * @license
- * Copyright 2017 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-import { LogCallback, LogLevelString, LogOptions } from '@firebase/logger';
-
-export type FirebaseOptions = {
- apiKey?: string;
- authDomain?: string;
- databaseURL?: string;
- projectId?: string;
- storageBucket?: string;
- messagingSenderId?: string;
- appId?: string;
- measurementId?: string;
-};
-
-export interface FirebaseAppConfig {
- name?: string;
- automaticDataCollectionEnabled?: boolean;
-}
-
-export class FirebaseApp {
- /**
- * The (read-only) name (identifier) for this App. '[DEFAULT]' is the default
- * App.
- */
- name: string;
-
- /**
- * The (read-only) configuration options from the app initialization.
- */
- options: FirebaseOptions;
-
- /**
- * The settable config flag for GDPR opt-in/opt-out
- */
- automaticDataCollectionEnabled: boolean;
-
- /**
- * Make the given App unusable and free resources.
- */
- delete(): Promise<void>;
-}
-
-export interface FirebaseNamespace {
- /**
- * Create (and initialize) a FirebaseApp.
- *
- * @param options Options to configure the services used in the App.
- * @param config The optional config for your firebase app
- */
- initializeApp(
- options: FirebaseOptions,
- config?: FirebaseAppConfig
- ): FirebaseApp;
- /**
- * Create (and initialize) a FirebaseApp.
- *
- * @param options Options to configure the services used in the App.
- * @param name The optional name of the app to initialize ('[DEFAULT]' if
- * omitted)
- */
- initializeApp(options: FirebaseOptions, name?: string): FirebaseApp;
-
- app: {
- /**
- * Retrieve an instance of a FirebaseApp.
- *
- * Usage: firebase.app()
- *
- * @param name The optional name of the app to return ('[DEFAULT]' if omitted)
- */
- (name?: string): FirebaseApp;
-
- /**
- * For testing FirebaseApp instances:
- * app() instanceof firebase.app.App
- *
- * DO NOT call this constuctor directly (use firebase.app() instead).
- */
- App: typeof FirebaseApp;
- };
-
- /**
- * A (read-only) array of all the initialized Apps.
- */
- apps: FirebaseApp[];
-
- /**
- * Registers a library's name and version for platform logging purposes.
- * @param library Name of 1p or 3p library (e.g. firestore, angularfire)
- * @param version Current version of that library.
- */
- registerVersion(library: string, version: string, variant?: string): void;
-
- // Sets log level for all Firebase components.
- setLogLevel(logLevel: LogLevelString): void;
-
- // Sets log handler for all Firebase components.
- onLog(logCallback: LogCallback, options?: LogOptions): void;
-
- // The current SDK version.
- SDK_VERSION: string;
-}
-
-export interface VersionService {
- library: string;
- version: string;
-}
-
-declare module '@firebase/component' {
- interface NameServiceMapping {
- 'app-version': VersionService;
- 'platform-identifier': VersionService;
- }
-}
diff --git a/frontend-old/node_modules/@firebase/app-types/package.json b/frontend-old/node_modules/@firebase/app-types/package.json
deleted file mode 100644
index 4c49efb..0000000
--- a/frontend-old/node_modules/@firebase/app-types/package.json
+++ /dev/null
@@ -1,29 +0,0 @@
-{
- "name": "@firebase/app-types",
- "version": "0.9.3",
- "description": "@firebase/app Types",
- "author": "Firebase <firebase-support@google.com> (https://firebase.google.com/)",
- "license": "Apache-2.0",
- "scripts": {
- "test": "tsc",
- "test:ci": "node ../../scripts/run_tests_in_ci.js"
- },
- "files": [
- "index.d.ts",
- "private.d.ts"
- ],
- "repository": {
- "directory": "packages/app-types",
- "type": "git",
- "url": "git+https://github.com/firebase/firebase-js-sdk.git"
- },
- "bugs": {
- "url": "https://github.com/firebase/firebase-js-sdk/issues"
- },
- "dependency": {
- "@firebase/logger": "0.2.6"
- },
- "devDependencies": {
- "typescript": "5.5.4"
- }
-}
diff --git a/frontend-old/node_modules/@firebase/app-types/private.d.ts b/frontend-old/node_modules/@firebase/app-types/private.d.ts
deleted file mode 100644
index 410eece..0000000
--- a/frontend-old/node_modules/@firebase/app-types/private.d.ts
+++ /dev/null
@@ -1,165 +0,0 @@
-/**
- * @license
- * Copyright 2017 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-/**
- * THIS FILE IS FOR INTERNAL USAGE ONLY, IF YOU ARE NOT DEVELOPING THE FIREBASE
- * SDKs, PLEASE DO NOT REFERENCE THIS FILE AS IT MAY CHANGE WITHOUT WARNING
- */
-
-import { FirebaseApp, FirebaseNamespace } from '@firebase/app-types';
-import { Observer, Subscribe } from '@firebase/util';
-import { FirebaseError, ErrorFactory } from '@firebase/util';
-import { Component, ComponentContainer, Name } from '@firebase/component';
-
-export interface FirebaseServiceInternals {
- /**
- * Delete the service and free it's resources - called from
- * app.delete().
- */
- delete(): Promise<void>;
-}
-
-// Services are exposed through instances - each of which is associated with a
-// FirebaseApp.
-export interface FirebaseService {
- app: FirebaseApp;
- INTERNAL?: FirebaseServiceInternals;
-}
-
-export type AppHook = (event: string, app: FirebaseApp) => void;
-
-/**
- * Firebase Services create instances given a Firebase App instance and can
- * optionally add properties and methods to each FirebaseApp via the extendApp()
- * function.
- */
-export interface FirebaseServiceFactory {
- (
- app: FirebaseApp,
- extendApp?: (props: { [prop: string]: any }) => void,
- instanceString?: string
- ): FirebaseService;
-}
-
-export interface PlatformLoggerService {
- getPlatformInfoString(): string;
-}
-
-/**
- * All ServiceNamespaces extend from FirebaseServiceNamespace
- */
-export interface FirebaseServiceNamespace<T extends FirebaseService> {
- (app?: FirebaseApp): T;
-}
-
-export interface FirebaseAuthTokenData {
- accessToken: string;
-}
-
-export interface FirebaseAppInternals {
- getToken(refreshToken?: boolean): Promise<FirebaseAuthTokenData | null>;
- getUid(): string | null;
- addAuthTokenListener(fn: (token: string | null) => void): void;
- removeAuthTokenListener(fn: (token: string | null) => void): void;
- analytics: {
- logEvent: (
- eventName: string,
- eventParams: { [key: string]: any },
- options?: { global: boolean }
- ) => void;
- };
-}
-
-export interface _FirebaseApp extends FirebaseApp {
- container: ComponentContainer;
- _addComponent<T extends Name>(component: Component<T>): void;
- _addOrOverwriteComponent<T extends Name>(component: Component<T>): void;
- _removeServiceInstance(name: string, instanceIdentifier?: string): void;
-}
-export interface _FirebaseNamespace extends FirebaseNamespace {
- INTERNAL: {
- /**
- * Internal API to register a Firebase Service into the firebase namespace.
- *
- * Each service will create a child namespace (firebase.<name>) which acts as
- * both a namespace for service specific properties, and also as a service
- * accessor function (firebase.<name>() or firebase.<name>(app)).
- *
- * @param name The Firebase Service being registered.
- * @param createService Factory function to create a service instance.
- * @param serviceProperties Properties to copy to the service's namespace.
- * @param appHook All appHooks called before initializeApp returns to caller.
- * @param allowMultipleInstances Whether the registered service supports
- * multiple instances per app. If not specified, the default is false.
- */
- registerComponent<T extends Name>(
- component: Component<T>
- ): FirebaseServiceNamespace<FirebaseService> | null;
-
- /**
- * Just used for testing to start from a fresh namespace.
- */
- createFirebaseNamespace(): FirebaseNamespace;
-
- /**
- * Internal API to install properties on the top-level firebase namespace.
- * @prop props The top level properties of this object are copied to the
- * namespace.
- */
- extendNamespace(props: { [prop: string]: any }): void;
-
- /**
- * Create a Subscribe function. A proxy Observer is created so that
- * events can be sent to single Observer to be fanned out automatically.
- */
- createSubscribe<T>(
- executor: (observer: Observer<T>) => void,
- onNoObservers?: (observer: Observer<T>) => void
- ): Subscribe<T>;
-
- /**
- * Utility exposed for internal testing.
- */
- deepExtend(target: any, source: any): any;
-
- /**
- * Internal API to remove an app from the list of registered apps.
- */
- removeApp(name: string): void;
-
- /**
- * registered components.
- */
- components: Map<string, Component>;
-
- /*
- * Convert service name to factory name to use.
- */
- useAsService(app: FirebaseApp, serviceName: string): string | null;
-
- /**
- * Use to construct all thrown FirebaseError's.
- */
- ErrorFactory: typeof ErrorFactory;
- };
-}
-
-declare module '@firebase/component' {
- interface NameServiceMapping {
- 'platform-logger': PlatformLoggerService;
- }
-}