From 434aa8343fdcbb4d5002f934979913c099489bee Mon Sep 17 00:00:00 2001 From: altaf-creator Date: Sun, 16 Nov 2025 19:08:29 +0800 Subject: sdk, del --- .../data-connect/dist/src/api.browser.d.ts | 34 ------ .../@firebase/data-connect/dist/src/api.node.d.ts | 17 --- .../data-connect/dist/src/api/DataConnect.d.ts | 118 --------------------- .../data-connect/dist/src/api/Mutation.d.ts | 61 ----------- .../data-connect/dist/src/api/Reference.d.ts | 51 --------- .../@firebase/data-connect/dist/src/api/index.d.ts | 24 ----- .../@firebase/data-connect/dist/src/api/query.d.ts | 96 ----------------- .../dist/src/core/AppCheckTokenProvider.d.ts | 31 ------ .../dist/src/core/FirebaseAuthProvider.d.ts | 34 ------ .../data-connect/dist/src/core/QueryManager.d.ts | 36 ------- .../data-connect/dist/src/core/error.d.ts | 53 --------- .../data-connect/dist/src/core/version.d.ts | 23 ---- .../@firebase/data-connect/dist/src/index.d.ts | 29 ----- .../data-connect/dist/src/index.node.d.ts | 18 ---- .../@firebase/data-connect/dist/src/logger.d.ts | 20 ---- .../data-connect/dist/src/network/fetch.d.ts | 27 ----- .../data-connect/dist/src/network/index.d.ts | 17 --- .../dist/src/network/transport/index.d.ts | 52 --------- .../dist/src/network/transport/rest.d.ts | 61 ----------- .../@firebase/data-connect/dist/src/register.d.ts | 1 - .../data-connect/dist/src/tsdoc-metadata.json | 11 -- .../data-connect/dist/src/util/encoder.d.ts | 19 ---- .../@firebase/data-connect/dist/src/util/map.d.ts | 17 --- .../@firebase/data-connect/dist/src/util/url.d.ts | 19 ---- .../data-connect/dist/src/util/validateArgs.d.ts | 33 ------ 25 files changed, 902 deletions(-) delete mode 100644 frontend-old/node_modules/@firebase/data-connect/dist/src/api.browser.d.ts delete mode 100644 frontend-old/node_modules/@firebase/data-connect/dist/src/api.node.d.ts delete mode 100644 frontend-old/node_modules/@firebase/data-connect/dist/src/api/DataConnect.d.ts delete mode 100644 frontend-old/node_modules/@firebase/data-connect/dist/src/api/Mutation.d.ts delete mode 100644 frontend-old/node_modules/@firebase/data-connect/dist/src/api/Reference.d.ts delete mode 100644 frontend-old/node_modules/@firebase/data-connect/dist/src/api/index.d.ts delete mode 100644 frontend-old/node_modules/@firebase/data-connect/dist/src/api/query.d.ts delete mode 100644 frontend-old/node_modules/@firebase/data-connect/dist/src/core/AppCheckTokenProvider.d.ts delete mode 100644 frontend-old/node_modules/@firebase/data-connect/dist/src/core/FirebaseAuthProvider.d.ts delete mode 100644 frontend-old/node_modules/@firebase/data-connect/dist/src/core/QueryManager.d.ts delete mode 100644 frontend-old/node_modules/@firebase/data-connect/dist/src/core/error.d.ts delete mode 100644 frontend-old/node_modules/@firebase/data-connect/dist/src/core/version.d.ts delete mode 100644 frontend-old/node_modules/@firebase/data-connect/dist/src/index.d.ts delete mode 100644 frontend-old/node_modules/@firebase/data-connect/dist/src/index.node.d.ts delete mode 100644 frontend-old/node_modules/@firebase/data-connect/dist/src/logger.d.ts delete mode 100644 frontend-old/node_modules/@firebase/data-connect/dist/src/network/fetch.d.ts delete mode 100644 frontend-old/node_modules/@firebase/data-connect/dist/src/network/index.d.ts delete mode 100644 frontend-old/node_modules/@firebase/data-connect/dist/src/network/transport/index.d.ts delete mode 100644 frontend-old/node_modules/@firebase/data-connect/dist/src/network/transport/rest.d.ts delete mode 100644 frontend-old/node_modules/@firebase/data-connect/dist/src/register.d.ts delete mode 100644 frontend-old/node_modules/@firebase/data-connect/dist/src/tsdoc-metadata.json delete mode 100644 frontend-old/node_modules/@firebase/data-connect/dist/src/util/encoder.d.ts delete mode 100644 frontend-old/node_modules/@firebase/data-connect/dist/src/util/map.d.ts delete mode 100644 frontend-old/node_modules/@firebase/data-connect/dist/src/util/url.d.ts delete mode 100644 frontend-old/node_modules/@firebase/data-connect/dist/src/util/validateArgs.d.ts (limited to 'frontend-old/node_modules/@firebase/data-connect/dist/src') diff --git a/frontend-old/node_modules/@firebase/data-connect/dist/src/api.browser.d.ts b/frontend-old/node_modules/@firebase/data-connect/dist/src/api.browser.d.ts deleted file mode 100644 index ddfdad5..0000000 --- a/frontend-old/node_modules/@firebase/data-connect/dist/src/api.browser.d.ts +++ /dev/null @@ -1,34 +0,0 @@ -/** - * @license - * Copyright 2024 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 { OnCompleteSubscription, OnErrorSubscription, OnResultSubscription, QueryRef, QueryUnsubscribe, SubscriptionOptions } from './api/query'; -import { SerializedRef } from './api/Reference'; -/** - * Subscribe to a `QueryRef` - * @param queryRefOrSerializedResult query ref or serialized result. - * @param observer observer object to use for subscribing. - * @returns `SubscriptionOptions` - */ -export declare function subscribe(queryRefOrSerializedResult: QueryRef | SerializedRef, observer: SubscriptionOptions): QueryUnsubscribe; -/** - * Subscribe to a `QueryRef` - * @param queryRefOrSerializedResult query ref or serialized result. - * @param onNext Callback to call when result comes back. - * @param onError Callback to call when error gets thrown. - * @param onComplete Called when subscription completes. - * @returns `SubscriptionOptions` - */ -export declare function subscribe(queryRefOrSerializedResult: QueryRef | SerializedRef, onNext: OnResultSubscription, onError?: OnErrorSubscription, onComplete?: OnCompleteSubscription): QueryUnsubscribe; diff --git a/frontend-old/node_modules/@firebase/data-connect/dist/src/api.node.d.ts b/frontend-old/node_modules/@firebase/data-connect/dist/src/api.node.d.ts deleted file mode 100644 index 4bd8016..0000000 --- a/frontend-old/node_modules/@firebase/data-connect/dist/src/api.node.d.ts +++ /dev/null @@ -1,17 +0,0 @@ -/** - * @license - * Copyright 2024 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. - */ -export { subscribe } from './api.browser'; diff --git a/frontend-old/node_modules/@firebase/data-connect/dist/src/api/DataConnect.d.ts b/frontend-old/node_modules/@firebase/data-connect/dist/src/api/DataConnect.d.ts deleted file mode 100644 index 9b20a40..0000000 --- a/frontend-old/node_modules/@firebase/data-connect/dist/src/api/DataConnect.d.ts +++ /dev/null @@ -1,118 +0,0 @@ -/** - * @license - * Copyright 2024 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 { FirebaseApp } from '@firebase/app'; -import { AppCheckInternalComponentName } from '@firebase/app-check-interop-types'; -import { FirebaseAuthInternalName } from '@firebase/auth-interop-types'; -import { Provider } from '@firebase/component'; -import { QueryManager } from '../core/QueryManager'; -import { CallerSdkType } from '../network'; -import { MutationManager } from './Mutation'; -/** - * Connector Config for calling Data Connect backend. - */ -export interface ConnectorConfig { - location: string; - connector: string; - service: string; -} -/** - * Options to connect to emulator - */ -export interface TransportOptions { - host: string; - sslEnabled?: boolean; - port?: number; -} -/** - * - * @param fullHost - * @returns TransportOptions - * @internal - */ -export declare function parseOptions(fullHost: string): TransportOptions; -/** - * DataConnectOptions including project id - */ -export interface DataConnectOptions extends ConnectorConfig { - projectId: string; -} -/** - * Class representing Firebase Data Connect - */ -export declare class DataConnect { - readonly app: FirebaseApp; - private readonly dataConnectOptions; - private readonly _authProvider; - private readonly _appCheckProvider; - _queryManager: QueryManager; - _mutationManager: MutationManager; - isEmulator: boolean; - _initialized: boolean; - private _transport; - private _transportClass; - private _transportOptions?; - private _authTokenProvider?; - _isUsingGeneratedSdk: boolean; - _callerSdkType: CallerSdkType; - private _appCheckTokenProvider?; - constructor(app: FirebaseApp, dataConnectOptions: DataConnectOptions, _authProvider: Provider, _appCheckProvider: Provider); - _useGeneratedSdk(): void; - _setCallerSdkType(callerSdkType: CallerSdkType): void; - _delete(): Promise; - getSettings(): ConnectorConfig; - setInitialized(): void; - enableEmulator(transportOptions: TransportOptions): void; -} -/** - * @internal - * @param transportOptions1 - * @param transportOptions2 - * @returns - */ -export declare function areTransportOptionsEqual(transportOptions1: TransportOptions, transportOptions2: TransportOptions): boolean; -/** - * Connect to the DataConnect Emulator - * @param dc Data Connect instance - * @param host host of emulator server - * @param port port of emulator server - * @param sslEnabled use https - */ -export declare function connectDataConnectEmulator(dc: DataConnect, host: string, port?: number, sslEnabled?: boolean): void; -/** - * Initialize DataConnect instance - * @param options ConnectorConfig - */ -export declare function getDataConnect(options: ConnectorConfig): DataConnect; -/** - * Initialize DataConnect instance - * @param app FirebaseApp to initialize to. - * @param options ConnectorConfig - */ -export declare function getDataConnect(app: FirebaseApp, options: ConnectorConfig): DataConnect; -/** - * - * @param dcOptions - * @returns {void} - * @internal - */ -export declare function validateDCOptions(dcOptions: ConnectorConfig): boolean; -/** - * Delete DataConnect instance - * @param dataConnect DataConnect instance - * @returns - */ -export declare function terminate(dataConnect: DataConnect): Promise; diff --git a/frontend-old/node_modules/@firebase/data-connect/dist/src/api/Mutation.d.ts b/frontend-old/node_modules/@firebase/data-connect/dist/src/api/Mutation.d.ts deleted file mode 100644 index 5a9ddc3..0000000 --- a/frontend-old/node_modules/@firebase/data-connect/dist/src/api/Mutation.d.ts +++ /dev/null @@ -1,61 +0,0 @@ -/** - * @license - * Copyright 2024 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 { DataConnectTransport } from '../network/transport'; -import { DataConnect } from './DataConnect'; -import { DataConnectResult, MUTATION_STR, OperationRef } from './Reference'; -export interface MutationRef extends OperationRef { - refType: typeof MUTATION_STR; -} -/** - * Creates a `MutationRef` - * @param dcInstance Data Connect instance - * @param mutationName name of mutation - */ -export declare function mutationRef(dcInstance: DataConnect, mutationName: string): MutationRef; -/** - * - * @param dcInstance Data Connect instance - * @param mutationName name of mutation - * @param variables variables to send with mutation - */ -export declare function mutationRef(dcInstance: DataConnect, mutationName: string, variables: Variables): MutationRef; -/** - * @internal - */ -export declare class MutationManager { - private _transport; - private _inflight; - constructor(_transport: DataConnectTransport); - executeMutation(mutationRef: MutationRef): MutationPromise; -} -/** - * Mutation Result from `executeMutation` - */ -export interface MutationResult extends DataConnectResult { - ref: MutationRef; -} -/** - * Mutation return value from `executeMutation` - */ -export interface MutationPromise extends Promise> { -} -/** - * Execute Mutation - * @param mutationRef mutation to execute - * @returns `MutationRef` - */ -export declare function executeMutation(mutationRef: MutationRef): MutationPromise; diff --git a/frontend-old/node_modules/@firebase/data-connect/dist/src/api/Reference.d.ts b/frontend-old/node_modules/@firebase/data-connect/dist/src/api/Reference.d.ts deleted file mode 100644 index 67549ef..0000000 --- a/frontend-old/node_modules/@firebase/data-connect/dist/src/api/Reference.d.ts +++ /dev/null @@ -1,51 +0,0 @@ -/** - * @license - * Copyright 2024 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 { DataConnect, DataConnectOptions } from './DataConnect'; -export declare const QUERY_STR = "query"; -export declare const MUTATION_STR = "mutation"; -export type ReferenceType = typeof QUERY_STR | typeof MUTATION_STR; -export declare const SOURCE_SERVER = "SERVER"; -export declare const SOURCE_CACHE = "CACHE"; -export type DataSource = typeof SOURCE_CACHE | typeof SOURCE_SERVER; -export interface OpResult { - data: Data; - source: DataSource; - fetchTime: string; -} -export interface OperationRef<_Data, Variables> { - name: string; - variables: Variables; - refType: ReferenceType; - dataConnect: DataConnect; -} -export interface DataConnectResult extends OpResult { - ref: OperationRef; -} -/** - * Serialized RefInfo as a result of `QueryResult.toJSON().refInfo` - */ -export interface RefInfo { - name: string; - variables: Variables; - connectorConfig: DataConnectOptions; -} -/** - * Serialized Ref as a result of `QueryResult.toJSON()` - */ -export interface SerializedRef extends OpResult { - refInfo: RefInfo; -} diff --git a/frontend-old/node_modules/@firebase/data-connect/dist/src/api/index.d.ts b/frontend-old/node_modules/@firebase/data-connect/dist/src/api/index.d.ts deleted file mode 100644 index ceb0a89..0000000 --- a/frontend-old/node_modules/@firebase/data-connect/dist/src/api/index.d.ts +++ /dev/null @@ -1,24 +0,0 @@ -/** - * @license - * Copyright 2024 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. - */ -export * from '../network'; -export * from './DataConnect'; -export * from './Reference'; -export * from './Mutation'; -export * from './query'; -export { setLogLevel } from '../logger'; -export { validateArgs } from '../util/validateArgs'; -export { DataConnectErrorCode, Code, DataConnectError, DataConnectOperationError, DataConnectOperationFailureResponse, DataConnectOperationFailureResponseErrorInfo } from '../core/error'; diff --git a/frontend-old/node_modules/@firebase/data-connect/dist/src/api/query.d.ts b/frontend-old/node_modules/@firebase/data-connect/dist/src/api/query.d.ts deleted file mode 100644 index 93d3863..0000000 --- a/frontend-old/node_modules/@firebase/data-connect/dist/src/api/query.d.ts +++ /dev/null @@ -1,96 +0,0 @@ -/** - * @license - * Copyright 2024 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 { DataConnectError } from '../core/error'; -import { DataConnect } from './DataConnect'; -import { OperationRef, QUERY_STR, DataConnectResult, SerializedRef } from './Reference'; -/** - * Signature for `OnResultSubscription` for `subscribe` - */ -export type OnResultSubscription = (res: QueryResult) => void; -/** - * Signature for `OnErrorSubscription` for `subscribe` - */ -export type OnErrorSubscription = (err?: DataConnectError) => void; -/** - * Signature for unsubscribe from `subscribe` - */ -export type QueryUnsubscribe = () => void; -/** - * Representation of user provided subscription options. - */ -export interface DataConnectSubscription { - userCallback: OnResultSubscription; - errCallback?: (e?: DataConnectError) => void; - unsubscribe: () => void; -} -/** - * QueryRef object - */ -export interface QueryRef extends OperationRef { - refType: typeof QUERY_STR; -} -/** - * Result of `executeQuery` - */ -export interface QueryResult extends DataConnectResult { - ref: QueryRef; - toJSON: () => SerializedRef; -} -/** - * Promise returned from `executeQuery` - */ -export interface QueryPromise extends Promise> { -} -/** - * Execute Query - * @param queryRef query to execute. - * @returns `QueryPromise` - */ -export declare function executeQuery(queryRef: QueryRef): QueryPromise; -/** - * Execute Query - * @param dcInstance Data Connect instance to use. - * @param queryName Query to execute - * @returns `QueryRef` - */ -export declare function queryRef(dcInstance: DataConnect, queryName: string): QueryRef; -/** - * Execute Query - * @param dcInstance Data Connect instance to use. - * @param queryName Query to execute - * @param variables Variables to execute with - * @returns `QueryRef` - */ -export declare function queryRef(dcInstance: DataConnect, queryName: string, variables: Variables): QueryRef; -/** - * Converts serialized ref to query ref - * @param serializedRef ref to convert to `QueryRef` - * @returns `QueryRef` - */ -export declare function toQueryRef(serializedRef: SerializedRef): QueryRef; -/** - * `OnCompleteSubscription` - */ -export type OnCompleteSubscription = () => void; -/** - * Representation of full observer options in `subscribe` - */ -export interface SubscriptionOptions { - onNext?: OnResultSubscription; - onErr?: OnErrorSubscription; - onComplete?: OnCompleteSubscription; -} diff --git a/frontend-old/node_modules/@firebase/data-connect/dist/src/core/AppCheckTokenProvider.d.ts b/frontend-old/node_modules/@firebase/data-connect/dist/src/core/AppCheckTokenProvider.d.ts deleted file mode 100644 index aa6110c..0000000 --- a/frontend-old/node_modules/@firebase/data-connect/dist/src/core/AppCheckTokenProvider.d.ts +++ /dev/null @@ -1,31 +0,0 @@ -/** - * @license - * Copyright 2024 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 { FirebaseApp } from '@firebase/app'; -import { AppCheckInternalComponentName, AppCheckTokenListener, AppCheckTokenResult } from '@firebase/app-check-interop-types'; -import { Provider } from '@firebase/component'; -/** - * @internal - * Abstraction around AppCheck's token fetching capabilities. - */ -export declare class AppCheckTokenProvider { - private appCheckProvider?; - private appCheck?; - private serverAppAppCheckToken?; - constructor(app: FirebaseApp, appCheckProvider?: Provider); - getToken(): Promise; - addTokenChangeListener(listener: AppCheckTokenListener): void; -} diff --git a/frontend-old/node_modules/@firebase/data-connect/dist/src/core/FirebaseAuthProvider.d.ts b/frontend-old/node_modules/@firebase/data-connect/dist/src/core/FirebaseAuthProvider.d.ts deleted file mode 100644 index 8e05fc2..0000000 --- a/frontend-old/node_modules/@firebase/data-connect/dist/src/core/FirebaseAuthProvider.d.ts +++ /dev/null @@ -1,34 +0,0 @@ -/** - * @license - * Copyright 2024 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 { FirebaseOptions } from '@firebase/app-types'; -import { FirebaseAuthInternalName, FirebaseAuthTokenData } from '@firebase/auth-interop-types'; -import { Provider } from '@firebase/component'; -export interface AuthTokenProvider { - getToken(forceRefresh: boolean): Promise; - addTokenChangeListener(listener: AuthTokenListener): void; -} -export type AuthTokenListener = (token: string | null) => void; -export declare class FirebaseAuthProvider implements AuthTokenProvider { - private _appName; - private _options; - private _authProvider; - private _auth; - constructor(_appName: string, _options: FirebaseOptions, _authProvider: Provider); - getToken(forceRefresh: boolean): Promise; - addTokenChangeListener(listener: AuthTokenListener): void; - removeTokenChangeListener(listener: (token: string | null) => void): void; -} diff --git a/frontend-old/node_modules/@firebase/data-connect/dist/src/core/QueryManager.d.ts b/frontend-old/node_modules/@firebase/data-connect/dist/src/core/QueryManager.d.ts deleted file mode 100644 index 95b7a33..0000000 --- a/frontend-old/node_modules/@firebase/data-connect/dist/src/core/QueryManager.d.ts +++ /dev/null @@ -1,36 +0,0 @@ -/** - * @license - * Copyright 2024 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 { DataConnectSubscription, OnErrorSubscription, OnResultSubscription, QueryPromise, QueryRef } from '../api/query'; -import { OperationRef, OpResult } from '../api/Reference'; -import { DataConnectTransport } from '../network'; -import { DataConnectError } from './error'; -interface TrackedQuery { - ref: Omit, 'dataConnect'>; - subscriptions: Array>; - currentCache: OpResult | null; - lastError: DataConnectError | null; -} -export declare class QueryManager { - private transport; - _queries: Map>; - constructor(transport: DataConnectTransport); - track(queryName: string, variables: Variables, initialCache?: OpResult): TrackedQuery; - addSubscription(queryRef: OperationRef, onResultCallback: OnResultSubscription, onErrorCallback?: OnErrorSubscription, initialCache?: OpResult): () => void; - executeQuery(queryRef: QueryRef): QueryPromise; - enableEmulator(host: string, port: number): void; -} -export {}; diff --git a/frontend-old/node_modules/@firebase/data-connect/dist/src/core/error.d.ts b/frontend-old/node_modules/@firebase/data-connect/dist/src/core/error.d.ts deleted file mode 100644 index 3609a0b..0000000 --- a/frontend-old/node_modules/@firebase/data-connect/dist/src/core/error.d.ts +++ /dev/null @@ -1,53 +0,0 @@ -/** - * @license - * Copyright 2024 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 { FirebaseError } from '@firebase/util'; -export type DataConnectErrorCode = 'other' | 'already-initialized' | 'not-initialized' | 'not-supported' | 'invalid-argument' | 'partial-error' | 'unauthorized'; -export type Code = DataConnectErrorCode; -export declare const Code: { - OTHER: DataConnectErrorCode; - ALREADY_INITIALIZED: DataConnectErrorCode; - NOT_INITIALIZED: DataConnectErrorCode; - NOT_SUPPORTED: DataConnectErrorCode; - INVALID_ARGUMENT: DataConnectErrorCode; - PARTIAL_ERROR: DataConnectErrorCode; - UNAUTHORIZED: DataConnectErrorCode; -}; -/** An error returned by a DataConnect operation. */ -export declare class DataConnectError extends FirebaseError { - /** @internal */ - readonly name: string; - constructor(code: Code, message: string); - /** @internal */ - toString(): string; -} -/** An error returned by a DataConnect operation. */ -export declare class DataConnectOperationError extends DataConnectError { - /** @internal */ - readonly name: string; - /** The response received from the backend. */ - readonly response: DataConnectOperationFailureResponse; - /** @hideconstructor */ - constructor(message: string, response: DataConnectOperationFailureResponse); -} -export interface DataConnectOperationFailureResponse { - readonly data?: Record | null; - readonly errors: DataConnectOperationFailureResponseErrorInfo[]; -} -export interface DataConnectOperationFailureResponseErrorInfo { - readonly message: string; - readonly path: Array; -} diff --git a/frontend-old/node_modules/@firebase/data-connect/dist/src/core/version.d.ts b/frontend-old/node_modules/@firebase/data-connect/dist/src/core/version.d.ts deleted file mode 100644 index 76d8740..0000000 --- a/frontend-old/node_modules/@firebase/data-connect/dist/src/core/version.d.ts +++ /dev/null @@ -1,23 +0,0 @@ -/** - * @license - * Copyright 2024 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. - */ -/** The semver (www.semver.org) version of the SDK. */ -export declare let SDK_VERSION: string; -/** - * SDK_VERSION should be set before any database instance is created - * @internal - */ -export declare function setSDKVersion(version: string): void; diff --git a/frontend-old/node_modules/@firebase/data-connect/dist/src/index.d.ts b/frontend-old/node_modules/@firebase/data-connect/dist/src/index.d.ts deleted file mode 100644 index 0aa918c..0000000 --- a/frontend-old/node_modules/@firebase/data-connect/dist/src/index.d.ts +++ /dev/null @@ -1,29 +0,0 @@ -/** - * Firebase Data Connect - * - * @packageDocumentation - */ -/** - * @license - * Copyright 2024 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 { DataConnect } from './api/DataConnect'; -export * from './api'; -export * from './api.browser'; -declare module '@firebase/component' { - interface NameServiceMapping { - 'data-connect': DataConnect; - } -} diff --git a/frontend-old/node_modules/@firebase/data-connect/dist/src/index.node.d.ts b/frontend-old/node_modules/@firebase/data-connect/dist/src/index.node.d.ts deleted file mode 100644 index f5f70a7..0000000 --- a/frontend-old/node_modules/@firebase/data-connect/dist/src/index.node.d.ts +++ /dev/null @@ -1,18 +0,0 @@ -/** - * @license - * Copyright 2024 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. - */ -export * from './api'; -export * from './api.node'; diff --git a/frontend-old/node_modules/@firebase/data-connect/dist/src/logger.d.ts b/frontend-old/node_modules/@firebase/data-connect/dist/src/logger.d.ts deleted file mode 100644 index 3cc3fe0..0000000 --- a/frontend-old/node_modules/@firebase/data-connect/dist/src/logger.d.ts +++ /dev/null @@ -1,20 +0,0 @@ -/** - * @license - * Copyright 2024 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 { LogLevelString } from '@firebase/logger'; -export declare function setLogLevel(logLevel: LogLevelString): void; -export declare function logDebug(msg: string): void; -export declare function logError(msg: string): void; diff --git a/frontend-old/node_modules/@firebase/data-connect/dist/src/network/fetch.d.ts b/frontend-old/node_modules/@firebase/data-connect/dist/src/network/fetch.d.ts deleted file mode 100644 index 80d65c2..0000000 --- a/frontend-old/node_modules/@firebase/data-connect/dist/src/network/fetch.d.ts +++ /dev/null @@ -1,27 +0,0 @@ -/** - * @license - * Copyright 2024 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 { CallerSdkType } from './transport'; -export declare function initializeFetch(fetchImpl: typeof fetch): void; -export interface DataConnectFetchBody { - name: string; - operationName: string; - variables: T; -} -export declare function dcFetch(url: string, body: DataConnectFetchBody, { signal }: AbortController, appId: string | null, accessToken: string | null, appCheckToken: string | null, _isUsingGen: boolean, _callerSdkType: CallerSdkType, _isUsingEmulator: boolean): Promise<{ - data: T; - errors: Error[]; -}>; diff --git a/frontend-old/node_modules/@firebase/data-connect/dist/src/network/index.d.ts b/frontend-old/node_modules/@firebase/data-connect/dist/src/network/index.d.ts deleted file mode 100644 index e3afb7c..0000000 --- a/frontend-old/node_modules/@firebase/data-connect/dist/src/network/index.d.ts +++ /dev/null @@ -1,17 +0,0 @@ -/** - * @license - * Copyright 2024 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. - */ -export * from './transport'; diff --git a/frontend-old/node_modules/@firebase/data-connect/dist/src/network/transport/index.d.ts b/frontend-old/node_modules/@firebase/data-connect/dist/src/network/transport/index.d.ts deleted file mode 100644 index e1823db..0000000 --- a/frontend-old/node_modules/@firebase/data-connect/dist/src/network/transport/index.d.ts +++ /dev/null @@ -1,52 +0,0 @@ -/** - * @license - * Copyright 2024 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 { DataConnectOptions, TransportOptions } from '../../api/DataConnect'; -import { AppCheckTokenProvider } from '../../core/AppCheckTokenProvider'; -import { AuthTokenProvider } from '../../core/FirebaseAuthProvider'; -/** - * enum representing different flavors of the SDK used by developers - * use the CallerSdkType for type-checking, and the CallerSdkTypeEnum for value-checking/assigning - */ -export type CallerSdkType = 'Base' | 'Generated' | 'TanstackReactCore' | 'GeneratedReact' | 'TanstackAngularCore' | 'GeneratedAngular'; -export declare const CallerSdkTypeEnum: { - readonly Base: "Base"; - readonly Generated: "Generated"; - readonly TanstackReactCore: "TanstackReactCore"; - readonly GeneratedReact: "GeneratedReact"; - readonly TanstackAngularCore: "TanstackAngularCore"; - readonly GeneratedAngular: "GeneratedAngular"; -}; -/** - * @internal - */ -export interface DataConnectTransport { - invokeQuery(queryName: string, body?: U): Promise<{ - data: T; - errors: Error[]; - }>; - invokeMutation(queryName: string, body?: U): Promise<{ - data: T; - errors: Error[]; - }>; - useEmulator(host: string, port?: number, sslEnabled?: boolean): void; - onTokenChanged: (token: string | null) => void; - _setCallerSdkType(callerSdkType: CallerSdkType): void; -} -/** - * @internal - */ -export type TransportClass = new (options: DataConnectOptions, apiKey?: string, appId?: string, authProvider?: AuthTokenProvider, appCheckProvider?: AppCheckTokenProvider, transportOptions?: TransportOptions, _isUsingGen?: boolean, _callerSdkType?: CallerSdkType) => DataConnectTransport; diff --git a/frontend-old/node_modules/@firebase/data-connect/dist/src/network/transport/rest.d.ts b/frontend-old/node_modules/@firebase/data-connect/dist/src/network/transport/rest.d.ts deleted file mode 100644 index 64a8922..0000000 --- a/frontend-old/node_modules/@firebase/data-connect/dist/src/network/transport/rest.d.ts +++ /dev/null @@ -1,61 +0,0 @@ -/** - * @license - * Copyright 2024 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 { DataConnectOptions, TransportOptions } from '../../api/DataConnect'; -import { AppCheckTokenProvider } from '../../core/AppCheckTokenProvider'; -import { AuthTokenProvider } from '../../core/FirebaseAuthProvider'; -import { CallerSdkType, DataConnectTransport } from '.'; -export declare class RESTTransport implements DataConnectTransport { - private apiKey?; - private appId?; - private authProvider?; - private appCheckProvider?; - private _isUsingGen; - private _callerSdkType; - private _host; - private _port; - private _location; - private _connectorName; - private _secure; - private _project; - private _serviceName; - private _accessToken; - private _appCheckToken; - private _lastToken; - private _isUsingEmulator; - constructor(options: DataConnectOptions, apiKey?: string | undefined, appId?: string, authProvider?: AuthTokenProvider | undefined, appCheckProvider?: AppCheckTokenProvider | undefined, transportOptions?: TransportOptions | undefined, _isUsingGen?: boolean, _callerSdkType?: CallerSdkType); - get endpointUrl(): string; - useEmulator(host: string, port?: number, isSecure?: boolean): void; - onTokenChanged(newToken: string | null): void; - getWithAuth(forceToken?: boolean): Promise; - _setLastToken(lastToken: string | null): void; - withRetry(promiseFactory: () => Promise<{ - data: T; - errors: Error[]; - }>, retry?: boolean): Promise<{ - data: T; - errors: Error[]; - }>; - invokeQuery: (queryName: string, body?: U) => Promise<{ - data: T; - errors: Error[]; - }>; - invokeMutation: (queryName: string, body?: U) => Promise<{ - data: T; - errors: Error[]; - }>; - _setCallerSdkType(callerSdkType: CallerSdkType): void; -} diff --git a/frontend-old/node_modules/@firebase/data-connect/dist/src/register.d.ts b/frontend-old/node_modules/@firebase/data-connect/dist/src/register.d.ts deleted file mode 100644 index 3d26abe..0000000 --- a/frontend-old/node_modules/@firebase/data-connect/dist/src/register.d.ts +++ /dev/null @@ -1 +0,0 @@ -export declare function registerDataConnect(variant?: string): void; diff --git a/frontend-old/node_modules/@firebase/data-connect/dist/src/tsdoc-metadata.json b/frontend-old/node_modules/@firebase/data-connect/dist/src/tsdoc-metadata.json deleted file mode 100644 index 6af1f6a..0000000 --- a/frontend-old/node_modules/@firebase/data-connect/dist/src/tsdoc-metadata.json +++ /dev/null @@ -1,11 +0,0 @@ -// This file is read by tools that parse documentation comments conforming to the TSDoc standard. -// It should be published with your NPM package. It should not be tracked by Git. -{ - "tsdocVersion": "0.12", - "toolPackages": [ - { - "packageName": "@microsoft/api-extractor", - "packageVersion": "0.1.2" - } - ] -} diff --git a/frontend-old/node_modules/@firebase/data-connect/dist/src/util/encoder.d.ts b/frontend-old/node_modules/@firebase/data-connect/dist/src/util/encoder.d.ts deleted file mode 100644 index 96b56a3..0000000 --- a/frontend-old/node_modules/@firebase/data-connect/dist/src/util/encoder.d.ts +++ /dev/null @@ -1,19 +0,0 @@ -/** - * @license - * Copyright 2024 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. - */ -export type HmacImpl = (obj: unknown) => string; -export declare let encoderImpl: HmacImpl; -export declare function setEncoder(encoder: HmacImpl): void; diff --git a/frontend-old/node_modules/@firebase/data-connect/dist/src/util/map.d.ts b/frontend-old/node_modules/@firebase/data-connect/dist/src/util/map.d.ts deleted file mode 100644 index 650f671..0000000 --- a/frontend-old/node_modules/@firebase/data-connect/dist/src/util/map.d.ts +++ /dev/null @@ -1,17 +0,0 @@ -/** - * @license - * Copyright 2024 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. - */ -export declare function setIfNotExists(map: Map, key: string, val: T): void; diff --git a/frontend-old/node_modules/@firebase/data-connect/dist/src/util/url.d.ts b/frontend-old/node_modules/@firebase/data-connect/dist/src/util/url.d.ts deleted file mode 100644 index 4491e93..0000000 --- a/frontend-old/node_modules/@firebase/data-connect/dist/src/util/url.d.ts +++ /dev/null @@ -1,19 +0,0 @@ -/** - * @license - * Copyright 2024 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 { DataConnectOptions, TransportOptions } from '../api/DataConnect'; -export declare function urlBuilder(projectConfig: DataConnectOptions, transportOptions: TransportOptions): string; -export declare function addToken(url: string, apiKey?: string): string; diff --git a/frontend-old/node_modules/@firebase/data-connect/dist/src/util/validateArgs.d.ts b/frontend-old/node_modules/@firebase/data-connect/dist/src/util/validateArgs.d.ts deleted file mode 100644 index 5c31cdc..0000000 --- a/frontend-old/node_modules/@firebase/data-connect/dist/src/util/validateArgs.d.ts +++ /dev/null @@ -1,33 +0,0 @@ -/** - * @license - * Copyright 2024 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 { ConnectorConfig, DataConnect } from '../api/DataConnect'; -interface ParsedArgs { - dc: DataConnect; - vars: Variables; -} -/** - * The generated SDK will allow the user to pass in either the variable or the data connect instance with the variable, - * and this function validates the variables and returns back the DataConnect instance and variables based on the arguments passed in. - * @param connectorConfig - * @param dcOrVars - * @param vars - * @param validateVars - * @returns {DataConnect} and {Variables} instance - * @internal - */ -export declare function validateArgs(connectorConfig: ConnectorConfig, dcOrVars?: DataConnect | Variables, vars?: Variables, validateVars?: boolean): ParsedArgs; -export {}; -- cgit v1.2.3