summaryrefslogtreecommitdiff
path: root/frontend-old/node_modules/@firebase/data-connect/dist/src/network
diff options
context:
space:
mode:
Diffstat (limited to 'frontend-old/node_modules/@firebase/data-connect/dist/src/network')
-rw-r--r--frontend-old/node_modules/@firebase/data-connect/dist/src/network/fetch.d.ts27
-rw-r--r--frontend-old/node_modules/@firebase/data-connect/dist/src/network/index.d.ts17
-rw-r--r--frontend-old/node_modules/@firebase/data-connect/dist/src/network/transport/index.d.ts52
-rw-r--r--frontend-old/node_modules/@firebase/data-connect/dist/src/network/transport/rest.d.ts61
4 files changed, 0 insertions, 157 deletions
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<T> {
- name: string;
- operationName: string;
- variables: T;
-}
-export declare function dcFetch<T, U>(url: string, body: DataConnectFetchBody<U>, { 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<T, U>(queryName: string, body?: U): Promise<{
- data: T;
- errors: Error[];
- }>;
- invokeMutation<T, U>(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<string>;
- _setLastToken(lastToken: string | null): void;
- withRetry<T>(promiseFactory: () => Promise<{
- data: T;
- errors: Error[];
- }>, retry?: boolean): Promise<{
- data: T;
- errors: Error[];
- }>;
- invokeQuery: <T, U>(queryName: string, body?: U) => Promise<{
- data: T;
- errors: Error[];
- }>;
- invokeMutation: <T, U>(queryName: string, body?: U) => Promise<{
- data: T;
- errors: Error[];
- }>;
- _setCallerSdkType(callerSdkType: CallerSdkType): void;
-}