From 434aa8343fdcbb4d5002f934979913c099489bee Mon Sep 17 00:00:00 2001 From: altaf-creator Date: Sun, 16 Nov 2025 19:08:29 +0800 Subject: sdk, del --- .../remote-config/dist/src/storage/storage.d.ts | 116 --------------------- .../dist/src/storage/storage_cache.d.ts | 51 --------- 2 files changed, 167 deletions(-) delete mode 100644 frontend-old/node_modules/@firebase/remote-config/dist/src/storage/storage.d.ts delete mode 100644 frontend-old/node_modules/@firebase/remote-config/dist/src/storage/storage_cache.d.ts (limited to 'frontend-old/node_modules/@firebase/remote-config/dist/src/storage') diff --git a/frontend-old/node_modules/@firebase/remote-config/dist/src/storage/storage.d.ts b/frontend-old/node_modules/@firebase/remote-config/dist/src/storage/storage.d.ts deleted file mode 100644 index df20b57..0000000 --- a/frontend-old/node_modules/@firebase/remote-config/dist/src/storage/storage.d.ts +++ /dev/null @@ -1,116 +0,0 @@ -/** - * @license - * Copyright 2019 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 { FetchStatus, CustomSignals } from '@firebase/remote-config-types'; -import { FetchResponse, FirebaseRemoteConfigObject } from '../public_types'; -/** - * A general-purpose store keyed by app + namespace + {@link - * ProjectNamespaceKeyFieldValue}. - * - *

The Remote Config SDK can be used with multiple app installations, and each app can interact - * with multiple namespaces, so this store uses app (ID + name) and namespace as common parent keys - * for a set of key-value pairs. See {@link Storage#createCompositeKey}. - * - *

Visible for testing. - */ -export declare const APP_NAMESPACE_STORE = "app_namespace_store"; -/** - * Encapsulates metadata concerning throttled fetch requests. - */ -export interface ThrottleMetadata { - backoffCount: number; - throttleEndTimeMillis: number; -} -export interface RealtimeBackoffMetadata { - numFailedStreams: number; - backoffEndTimeMillis: Date; -} -/** - * Provides type-safety for the "key" field used by {@link APP_NAMESPACE_STORE}. - * - *

This seems like a small price to avoid potentially subtle bugs caused by a typo. - */ -type ProjectNamespaceKeyFieldValue = 'active_config' | 'active_config_etag' | 'last_fetch_status' | 'last_successful_fetch_timestamp_millis' | 'last_successful_fetch_response' | 'settings' | 'throttle_metadata' | 'custom_signals' | 'realtime_backoff_metadata' | 'last_known_template_version'; -export declare function openDatabase(): Promise; -/** - * Abstracts data persistence. - */ -export declare abstract class Storage { - getLastFetchStatus(): Promise; - setLastFetchStatus(status: FetchStatus): Promise; - getLastSuccessfulFetchTimestampMillis(): Promise; - setLastSuccessfulFetchTimestampMillis(timestamp: number): Promise; - getLastSuccessfulFetchResponse(): Promise; - setLastSuccessfulFetchResponse(response: FetchResponse): Promise; - getActiveConfig(): Promise; - setActiveConfig(config: FirebaseRemoteConfigObject): Promise; - getActiveConfigEtag(): Promise; - setActiveConfigEtag(etag: string): Promise; - getThrottleMetadata(): Promise; - setThrottleMetadata(metadata: ThrottleMetadata): Promise; - deleteThrottleMetadata(): Promise; - getCustomSignals(): Promise; - abstract setCustomSignals(customSignals: CustomSignals): Promise; - abstract get(key: ProjectNamespaceKeyFieldValue): Promise; - abstract set(key: ProjectNamespaceKeyFieldValue, value: T): Promise; - abstract delete(key: ProjectNamespaceKeyFieldValue): Promise; - getRealtimeBackoffMetadata(): Promise; - setRealtimeBackoffMetadata(realtimeMetadata: RealtimeBackoffMetadata): Promise; - getActiveConfigTemplateVersion(): Promise; - setActiveConfigTemplateVersion(version: number): Promise; -} -export declare class IndexedDbStorage extends Storage { - private readonly appId; - private readonly appName; - private readonly namespace; - private readonly openDbPromise; - /** - * @param appId enables storage segmentation by app (ID + name). - * @param appName enables storage segmentation by app (ID + name). - * @param namespace enables storage segmentation by namespace. - */ - constructor(appId: string, appName: string, namespace: string, openDbPromise?: Promise); - setCustomSignals(customSignals: CustomSignals): Promise; - /** - * Gets a value from the database using the provided transaction. - * - * @param key The key of the value to get. - * @param transaction The transaction to use for the operation. - * @returns The value associated with the key, or undefined if no such value exists. - */ - getWithTransaction(key: ProjectNamespaceKeyFieldValue, transaction: IDBTransaction): Promise; - /** - * Sets a value in the database using the provided transaction. - * - * @param key The key of the value to set. - * @param value The value to set. - * @param transaction The transaction to use for the operation. - * @returns A promise that resolves when the operation is complete. - */ - setWithTransaction(key: ProjectNamespaceKeyFieldValue, value: T, transaction: IDBTransaction): Promise; - get(key: ProjectNamespaceKeyFieldValue): Promise; - set(key: ProjectNamespaceKeyFieldValue, value: T): Promise; - delete(key: ProjectNamespaceKeyFieldValue): Promise; - createCompositeKey(key: ProjectNamespaceKeyFieldValue): string; -} -export declare class InMemoryStorage extends Storage { - private storage; - get(key: ProjectNamespaceKeyFieldValue): Promise; - set(key: ProjectNamespaceKeyFieldValue, value: T): Promise; - delete(key: ProjectNamespaceKeyFieldValue): Promise; - setCustomSignals(customSignals: CustomSignals): Promise; -} -export {}; diff --git a/frontend-old/node_modules/@firebase/remote-config/dist/src/storage/storage_cache.d.ts b/frontend-old/node_modules/@firebase/remote-config/dist/src/storage/storage_cache.d.ts deleted file mode 100644 index e61c523..0000000 --- a/frontend-old/node_modules/@firebase/remote-config/dist/src/storage/storage_cache.d.ts +++ /dev/null @@ -1,51 +0,0 @@ -/** - * @license - * Copyright 2019 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 { FetchStatus, CustomSignals } from '@firebase/remote-config-types'; -import { FirebaseRemoteConfigObject } from '../public_types'; -import { Storage } from './storage'; -/** - * A memory cache layer over storage to support the SDK's synchronous read requirements. - */ -export declare class StorageCache { - private readonly storage; - constructor(storage: Storage); - /** - * Memory caches. - */ - private lastFetchStatus?; - private lastSuccessfulFetchTimestampMillis?; - private activeConfig?; - private customSignals?; - /** - * Memory-only getters - */ - getLastFetchStatus(): FetchStatus | undefined; - getLastSuccessfulFetchTimestampMillis(): number | undefined; - getActiveConfig(): FirebaseRemoteConfigObject | undefined; - getCustomSignals(): CustomSignals | undefined; - /** - * Read-ahead getter - */ - loadFromStorage(): Promise; - /** - * Write-through setters - */ - setLastFetchStatus(status: FetchStatus): Promise; - setLastSuccessfulFetchTimestampMillis(timestampMillis: number): Promise; - setActiveConfig(activeConfig: FirebaseRemoteConfigObject): Promise; - setCustomSignals(customSignals: CustomSignals): Promise; -} -- cgit v1.2.3