Skip to content

Update Client Reporting for Data Connect #8349

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 34 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
34 commits
Select commit Hold shift + click to select a range
cc9e33b
Created data-connect package
maneesht Sep 29, 2023
2fbfba2
Added debug logs
maneesht May 8, 2024
144e9e4
Added licensing to logger file
maneesht May 8, 2024
8581bf0
Updated licensing years
maneesht May 8, 2024
b8e015c
Removed function from type
maneesht May 8, 2024
f2a1a4b
Added token to release files
maneesht May 8, 2024
4f89ef7
Made data-connect public
maneesht May 8, 2024
d8cc9ea
Merge remote-tracking branch 'public/master' into dataconnect
maneesht May 8, 2024
f2ddc3d
Pulled in publish file from vertexai branch
maneesht May 8, 2024
42eb5e5
Trigger release
maneesht May 8, 2024
323fdc1
Squashed commit of the following:
maneesht May 9, 2024
ed9123d
Removed emulator provider
maneesht May 9, 2024
81ee516
Fixed removal of database emulatortokenprovider
maneesht May 9, 2024
aa08c92
Addressed comments (#8244)
maneesht May 13, 2024
3bf4ab2
0.0.2 release
maneesht May 13, 2024
5c04c85
Merge remote-tracking branch 'origin/master' into dataconnect
maneesht May 13, 2024
877f8b7
Trigger 0.0.2 real release
maneesht May 13, 2024
0427a28
Updated comments
maneesht May 13, 2024
388b61c
Updated comments in api report
maneesht May 13, 2024
5b75ad9
Began reporting client sdk information
maneesht May 29, 2024
adf6da9
Fixed formatting
maneesht May 29, 2024
9a59180
Merge remote-tracking branch 'public/master' into mtewani/update-clie…
maneesht May 29, 2024
7347e23
Merge remote-tracking branch 'public/master' into dataconnect
maneesht May 30, 2024
5732ff8
Merge branch 'dataconnect' into mtewani/update-client-reporting
maneesht May 30, 2024
8e176be
Included docsite changes
maneesht May 31, 2024
01ca9df
Updated deps
maneesht May 31, 2024
a73e3aa
Merge branch 'dataconnect' into mtewani/update-client-reporting
maneesht Jun 4, 2024
ceed056
Began reporting client sdk information (#8271)
maneesht Jun 4, 2024
dc56001
Updated reporting
maneesht Jul 3, 2024
40bf140
Merge branch 'master' into dataconnect
maneesht Jul 3, 2024
f3353ad
Merge branch 'dataconnect' into mtewani/update-client-reporting
maneesht Jul 3, 2024
842463d
Modified reporting name (#8283)
maneesht Jul 3, 2024
5eedc9a
Merge branch 'dataconnect' of github.com:Firebase/firebase-js-sdk int…
maneesht Jul 3, 2024
e57c6b1
Merge branch 'dataconnect' into mtewani/update-client-reporting
maneesht Jul 3, 2024
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
1 change: 1 addition & 0 deletions .github/workflows/prerelease-manual-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ jobs:
NPM_TOKEN_AUTH_INTEROP_TYPES: ${{secrets.NPM_TOKEN_AUTH_INTEROP_TYPES}}
NPM_TOKEN_AUTH_TYPES: ${{secrets.NPM_TOKEN_AUTH_TYPES}}
NPM_TOKEN_COMPONENT: ${{secrets.NPM_TOKEN_COMPONENT}}
NPM_TOKEN_DATA_CONNECT: ${{secrets.NPM_TOKEN_DATA_CONNECT}}
NPM_TOKEN_DATABASE: ${{secrets.NPM_TOKEN_DATABASE}}
NPM_TOKEN_DATABASE_TYPES: ${{secrets.NPM_TOKEN_DATABASE_TYPES}}
NPM_TOKEN_FIRESTORE: ${{secrets.NPM_TOKEN_FIRESTORE}}
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/release-prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ jobs:
NPM_TOKEN_AUTH_INTEROP_TYPES: ${{secrets.NPM_TOKEN_AUTH_INTEROP_TYPES}}
NPM_TOKEN_AUTH_TYPES: ${{secrets.NPM_TOKEN_AUTH_TYPES}}
NPM_TOKEN_COMPONENT: ${{secrets.NPM_TOKEN_COMPONENT}}
NPM_TOKEN_DATA_CONNECT: ${{secrets.NPM_TOKEN_DATA_CONNECT}}
NPM_TOKEN_DATABASE: ${{secrets.NPM_TOKEN_DATABASE}}
NPM_TOKEN_DATABASE_TYPES: ${{secrets.NPM_TOKEN_DATABASE_TYPES}}
NPM_TOKEN_FIRESTORE: ${{secrets.NPM_TOKEN_FIRESTORE}}
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/release-staging.yml
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ jobs:
NPM_TOKEN_AUTH_INTEROP_TYPES: ${{secrets.NPM_TOKEN_AUTH_INTEROP_TYPES}}
NPM_TOKEN_AUTH_TYPES: ${{secrets.NPM_TOKEN_AUTH_TYPES}}
NPM_TOKEN_COMPONENT: ${{secrets.NPM_TOKEN_COMPONENT}}
NPM_TOKEN_DATA_CONNECT: ${{secrets.NPM_TOKEN_DATA_CONNECT}}
NPM_TOKEN_DATABASE: ${{secrets.NPM_TOKEN_DATABASE}}
NPM_TOKEN_DATABASE_TYPES: ${{secrets.NPM_TOKEN_DATABASE_TYPES}}
NPM_TOKEN_FIRESTORE: ${{secrets.NPM_TOKEN_FIRESTORE}}
Expand Down
3 changes: 2 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,6 @@
},
"typescript.tsdk": "node_modules/typescript/lib",
"files.associations": { "*.json": "jsonc" },
"eslint.workingDirectories": [{ "mode": "auto" }]
"eslint.workingDirectories": [{ "mode": "auto" }],
"editor.wordWrap": "off",
}
133 changes: 133 additions & 0 deletions common/api-review/connect.api.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,133 @@
## API Report File for "@firebase/connect"

> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/).

```ts

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

// @public (undocumented)
export function connectDataConnectEmulator(dc: DataConnect, host: string, port: number, isSecure?: boolean): void;

// @public (undocumented)
export interface Converter<Response> {
// (undocumented)
fromDataConnect: (data: DataConnectSnapshot<unknown>) => Response;
// (undocumented)
fromResponse: (response: Response) => DataConnectSnapshot<unknown>;
}

// @public (undocumented)
export class DataConnect {
constructor(firebaseApp: FirebaseApp, authProvider: Provider<FirebaseAuthInternalName>, transportOptions: TransportOptions, projectOptions: ProjectOptions, appCheckProvider?: Provider<AppCheckInternalComponentName>, useRest?: boolean);
// (undocumented)
enableEmulator(host: string, port: number, isSecure: boolean): void;
// (undocumented)
setInitialized(): void;
}

// @public (undocumented)
export interface DataConnectOptions {
// (undocumented)
projectOptions: ProjectOptions;
// (undocumented)
transportOptions?: TransportOptions;
}

// @public (undocumented)
export interface DataConnectSnapshot<Response> {
// (undocumented)
data: Response;
}

// @public (undocumented)
export interface DataConnectSubscription<Response> {
// (undocumented)
converter: Converter<Response>;
// (undocumented)
unsubscribe: () => void;
// (undocumented)
userCallback: (data: Response | undefined, error?: Error) => void;
}

// @public (undocumented)
export function executeMutation<Response, Variables>(mutationRef: Mutation<Response, Variables>): Promise<Response>;

// @public (undocumented)
export function executeQuery<Response, Variables>(queryRef: Query<Response, Variables>): Promise<Response>;

// @public (undocumented)
export const FIREBASE_DATA_CONNECT_EMULATOR_HOST_VAR = "FIREBASE_DATA_CONNECT_EMULATOR_HOST";

// @public (undocumented)
export function getDataConnect(app: FirebaseApp, options: DataConnectOptions): DataConnect;

// @public (undocumented)
export function getDataConnect(options: DataConnectOptions): DataConnect;

// @public (undocumented)
export interface Mutation<Response, Variables> extends Reference<Response, Variables> {
// (undocumented)
dcInstance: DataConnect;
}

// @public (undocumented)
export function mutationRef<Response, Variables>(dcInstance: DataConnect, queryName: string, variables: Variables): Mutation<Response, Variables>;

// @public (undocumented)
export interface ProjectOptions {
// (undocumented)
connector: string;
// (undocumented)
location: string;
// (undocumented)
project: string;
// (undocumented)
service: string;
}

// @public (undocumented)
export interface Query<Response, Variables> extends Reference<Response, Variables> {
// (undocumented)
dcInstance: DataConnect;
}

// @public (undocumented)
export function queryRef<Response, Variables = undefined>(dcInstance: DataConnect, queryName: string, variables?: Variables): Query<Response, Variables>;

// @public (undocumented)
export interface Reference<_Response, Variables> {
// (undocumented)
name: string;
// (undocumented)
refType: ReferenceType;
// (undocumented)
variables: Variables;
}

// @public (undocumented)
export enum ReferenceType {
// (undocumented)
Mutation = "m",
// (undocumented)
Query = "q"
}

// @public (undocumented)
export function subscribe<Response, Variables>(queryRef: Query<Response, Variables>, onSubscribe: DataConnectSubscription<Response>['userCallback'], converter: Converter<Response>): void;

// @public (undocumented)
export interface TransportOptions {
// (undocumented)
host: string;
// (undocumented)
isSecure: boolean;
// (undocumented)
port: number;
}


```
Loading
Loading