Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 1 addition & 11 deletions common/api-review/data-connect.api.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,9 @@

```ts

import { AppCheckInternalComponentName } from '@firebase/app-check-interop-types';
import { FirebaseApp } from '@firebase/app';
import { FirebaseAuthInternalName } from '@firebase/auth-interop-types';
import { FirebaseError } from '@firebase/util';
import { LogLevelString } from '@firebase/logger';
import { Provider } from '@firebase/component';

// @public
export type CallerSdkType = 'Base' | 'Generated' | 'TanstackReactCore' | 'GeneratedReact' | 'TanstackAngularCore' | 'GeneratedAngular';
Expand Down Expand Up @@ -53,7 +50,6 @@ export interface ConnectorConfig {

// @public
export class DataConnect {
constructor(app: FirebaseApp, dataConnectOptions: DataConnectOptions, _authProvider: Provider<FirebaseAuthInternalName>, _appCheckProvider: Provider<AppCheckInternalComponentName>);
// (undocumented)
readonly app: FirebaseApp;
// (undocumented)
Expand Down Expand Up @@ -97,12 +93,6 @@ export interface DataConnectOperationFailureResponseErrorInfo {
readonly path: Array<string | number>;
}

// @public
export interface DataConnectOptions extends ConnectorConfig {
// (undocumented)
projectId: string;
}

// @public (undocumented)
export interface DataConnectResult<Data, Variables> extends OpResult<Data> {
// (undocumented)
Expand Down Expand Up @@ -216,7 +206,7 @@ export type ReferenceType = typeof QUERY_STR | typeof MUTATION_STR;
// @public
export interface RefInfo<Variables> {
// (undocumented)
connectorConfig: DataConnectOptions;
connectorConfig: ConnectorConfig;
// (undocumented)
name: string;
// (undocumented)
Expand Down
4 changes: 3 additions & 1 deletion packages/data-connect/src/api/DataConnect.ts
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,9 @@ export class DataConnect {
_isUsingGeneratedSdk: boolean = false;
_callerSdkType: CallerSdkType = CallerSdkTypeEnum.Base;
private _appCheckTokenProvider?: AppCheckTokenProvider;
// @internal
/**
* @hideconstructor
*/
constructor(
public readonly app: FirebaseApp,
// TODO(mtewani): Replace with _dataConnectOptions in the future
Expand Down
4 changes: 2 additions & 2 deletions packages/data-connect/src/api/Reference.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
* limitations under the License.
*/

import { DataConnect, DataConnectOptions } from './DataConnect';
import { ConnectorConfig, DataConnect } from './DataConnect';
export const QUERY_STR = 'query';
export const MUTATION_STR = 'mutation';
export type ReferenceType = typeof QUERY_STR | typeof MUTATION_STR;
Expand Down Expand Up @@ -48,7 +48,7 @@ export interface DataConnectResult<Data, Variables> extends OpResult<Data> {
export interface RefInfo<Variables> {
name: string;
variables: Variables;
connectorConfig: DataConnectOptions;
connectorConfig: ConnectorConfig;
}
/**
* Serialized Ref as a result of `QueryResult.toJSON()`
Expand Down
2 changes: 1 addition & 1 deletion packages/data-connect/src/api/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
*/

export * from '../network';
export * from './DataConnect';
export { ConnectorConfig, DataConnect, TransportOptions, areTransportOptionsEqual, connectDataConnectEmulator, getDataConnect, parseOptions, terminate, validateDCOptions } from './DataConnect';
export * from './Reference';
export * from './Mutation';
export * from './query';
Expand Down
Loading