From 434aa8343fdcbb4d5002f934979913c099489bee Mon Sep 17 00:00:00 2001 From: altaf-creator Date: Sun, 16 Nov 2025 19:08:29 +0800 Subject: sdk, del --- .../dist/node-esm/src/api/DataConnect.d.ts | 118 --------------------- .../dist/node-esm/src/api/Mutation.d.ts | 61 ----------- .../dist/node-esm/src/api/Reference.d.ts | 51 --------- .../data-connect/dist/node-esm/src/api/index.d.ts | 24 ----- .../data-connect/dist/node-esm/src/api/query.d.ts | 96 ----------------- 5 files changed, 350 deletions(-) delete mode 100644 frontend-old/node_modules/@firebase/data-connect/dist/node-esm/src/api/DataConnect.d.ts delete mode 100644 frontend-old/node_modules/@firebase/data-connect/dist/node-esm/src/api/Mutation.d.ts delete mode 100644 frontend-old/node_modules/@firebase/data-connect/dist/node-esm/src/api/Reference.d.ts delete mode 100644 frontend-old/node_modules/@firebase/data-connect/dist/node-esm/src/api/index.d.ts delete mode 100644 frontend-old/node_modules/@firebase/data-connect/dist/node-esm/src/api/query.d.ts (limited to 'frontend-old/node_modules/@firebase/data-connect/dist/node-esm/src/api') diff --git a/frontend-old/node_modules/@firebase/data-connect/dist/node-esm/src/api/DataConnect.d.ts b/frontend-old/node_modules/@firebase/data-connect/dist/node-esm/src/api/DataConnect.d.ts deleted file mode 100644 index 9b20a40..0000000 --- a/frontend-old/node_modules/@firebase/data-connect/dist/node-esm/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/node-esm/src/api/Mutation.d.ts b/frontend-old/node_modules/@firebase/data-connect/dist/node-esm/src/api/Mutation.d.ts deleted file mode 100644 index 5a9ddc3..0000000 --- a/frontend-old/node_modules/@firebase/data-connect/dist/node-esm/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/node-esm/src/api/Reference.d.ts b/frontend-old/node_modules/@firebase/data-connect/dist/node-esm/src/api/Reference.d.ts deleted file mode 100644 index 67549ef..0000000 --- a/frontend-old/node_modules/@firebase/data-connect/dist/node-esm/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/node-esm/src/api/index.d.ts b/frontend-old/node_modules/@firebase/data-connect/dist/node-esm/src/api/index.d.ts deleted file mode 100644 index ceb0a89..0000000 --- a/frontend-old/node_modules/@firebase/data-connect/dist/node-esm/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/node-esm/src/api/query.d.ts b/frontend-old/node_modules/@firebase/data-connect/dist/node-esm/src/api/query.d.ts deleted file mode 100644 index 93d3863..0000000 --- a/frontend-old/node_modules/@firebase/data-connect/dist/node-esm/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; -} -- cgit v1.2.3