Skip to content
Open
Show file tree
Hide file tree
Changes from 21 commits
Commits
Show all changes
52 commits
Select commit Hold shift + click to select a range
524d7d8
add in changes from stephenarosaj/fdc-impersonate
stephenarosaj Sep 17, 2025
bc92c5e
finish adding in changes from stephenarosaj/fdc-impersonate
stephenarosaj Sep 17, 2025
d43588e
update Google Inc. to Google LLC, run npm install; npm run build
stephenarosaj Sep 17, 2025
dcd493f
run npm apidocs
stephenarosaj Sep 17, 2025
23fe1f4
remove public execute apis
stephenarosaj Sep 24, 2025
ae8096a
convert executeOperation api to OperationRef(...).execute() api
stephenarosaj Sep 25, 2025
52a18d7
remove internal client from operation refs
stephenarosaj Sep 25, 2025
3cb6645
cleanup javadocs to address workflow failures
stephenarosaj Sep 25, 2025
bad9808
npm run apidocs
stephenarosaj Sep 25, 2025
6bdef60
spread GraphqlOptions arguments in OperationRefs and executeOperation…
stephenarosaj Sep 26, 2025
798c2dc
convert unit tests to use spread args
stephenarosaj Sep 26, 2025
85a6b4b
convert integration tests to use spread args
stephenarosaj Sep 26, 2025
5f34343
add executeQuery test cases which do not provide impersonation option…
stephenarosaj Sep 26, 2025
088d882
add executeMutation test cases which do not provide impersonation opt…
stephenarosaj Sep 26, 2025
216b3ac
run npm apidocs
stephenarosaj Sep 26, 2025
fb5a3de
address try/catch comment
stephenarosaj Sep 29, 2025
fd4ffb5
address await and reject grouping comment
stephenarosaj Sep 29, 2025
b118905
address getUrl comments
stephenarosaj Sep 29, 2025
cf72f38
address insecureReason comment
stephenarosaj Sep 29, 2025
43f223d
convert autopush resources to prod
stephenarosaj Sep 30, 2025
2c642fb
add RefOptions, [Operation,Query,Mutation]Ref, [Operation,Query,Mutat…
stephenarosaj Oct 1, 2025
12f1258
revert OperationRef.execute() API to executeOperation API
stephenarosaj Oct 3, 2025
60649e4
revert OperationRef.execute() API to executeOperation API
stephenarosaj Oct 3, 2025
918c4a0
revert tests to use DataConnect.executeOperation() API instead of Ope…
stephenarosaj Oct 3, 2025
4dad488
revert package version
stephenarosaj Oct 3, 2025
786c75f
merge master into rosa/impersonate
stephenarosaj Oct 3, 2025
89e691a
update executeOperation API to return executeOperationResponse
stephenarosaj Oct 3, 2025
5721657
update comments
stephenarosaj Oct 3, 2025
fd61f1a
add invalidateAdminArgs to handle variadic JS executeOperation arguments
stephenarosaj Oct 8, 2025
104a1c5
npm run apidocs for validateAdminArgs
stephenarosaj Oct 13, 2025
652c059
update validateAdminArgs documentation
stephenarosaj Oct 14, 2025
79b55eb
address validateAdminArgs and some test comments
stephenarosaj Oct 14, 2025
97f75f3
update validate-admin-args and add tests, address existing test comme…
stephenarosaj Oct 15, 2025
f7d2a5b
update tests
stephenarosaj Oct 15, 2025
e95a035
update tests
stephenarosaj Oct 15, 2025
4e5fbcb
address mutation test comments
stephenarosaj Oct 15, 2025
b83b6da
address prod url comments
stephenarosaj Oct 15, 2025
39cfb9d
finally fixed unit tests
stephenarosaj Oct 15, 2025
5d4cbab
REALLY fixed unit tests
stephenarosaj Oct 15, 2025
69c180b
address comments, add DataConnect.executeQuery() and DataConnect.exec…
stephenarosaj Oct 18, 2025
e1d5c08
make validateAdminArgs internal
stephenarosaj Oct 20, 2025
a9b5f39
address comments
stephenarosaj Oct 21, 2025
b40871a
address documentation comment
stephenarosaj Oct 21, 2025
81d55c9
undo integration test changes
stephenarosaj Oct 21, 2025
07ba1e1
remove empty checks
stephenarosaj Oct 21, 2025
94d9147
remove length checks
stephenarosaj Oct 21, 2025
a84c639
remove foreach checks
stephenarosaj Oct 21, 2025
2578c3e
address test comments
stephenarosaj Oct 21, 2025
2590da7
revert package version
stephenarosaj Oct 28, 2025
9d93f5a
revert package version to master
stephenarosaj Oct 28, 2025
1d227b7
revert package version to master
stephenarosaj Oct 28, 2025
db410c2
update comments
stephenarosaj Oct 31, 2025
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
61 changes: 61 additions & 0 deletions etc/firebase-admin.data-connect.api.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ export type AuthClaims = Partial<DecodedIdToken>;

// @public
export interface ConnectorConfig {
connector?: string;
location: string;
serviceId: string;
}
Expand All @@ -29,6 +30,10 @@ export class DataConnect {
executeGraphqlRead<GraphqlResponse, Variables>(query: string, options?: GraphqlOptions<Variables>): Promise<ExecuteGraphqlResponse<GraphqlResponse>>;
insert<GraphQlResponse, Variables extends object>(tableName: string, variables: Variables): Promise<ExecuteGraphqlResponse<GraphQlResponse>>;
insertMany<GraphQlResponse, Variables extends Array<unknown>>(tableName: string, variables: Variables): Promise<ExecuteGraphqlResponse<GraphQlResponse>>;
mutationRef<Data>(name: string, options?: RefOptions): MutationRef<Data, undefined>;
mutationRef<Data, Variables>(name: string, variables: Variables, options?: RefOptions): MutationRef<Data, Variables>;
queryRef<Data>(name: string, options?: RefOptions): QueryRef<Data, undefined>;
queryRef<Data, Variables>(name: string, variables: Variables, options?: RefOptions): QueryRef<Data, Variables>;
upsert<GraphQlResponse, Variables extends object>(tableName: string, variables: Variables): Promise<ExecuteGraphqlResponse<GraphQlResponse>>;
upsertMany<GraphQlResponse, Variables extends Array<unknown>>(tableName: string, variables: Variables): Promise<ExecuteGraphqlResponse<GraphQlResponse>>;
}
Expand Down Expand Up @@ -60,4 +65,60 @@ export interface ImpersonateUnauthenticated {
unauthenticated: true;
}

// @public (undocumented)
export class MutationRef<Data, Variables> extends OperationRef<Data, Variables> {
// (undocumented)
execute(): Promise<MutationResult<Data, Variables>>;
}

// @public
export interface MutationResult<Data, Variables> extends OperationResult<Data, Variables> {
// (undocumented)
ref: MutationRef<Data, Variables>;
}

// @public (undocumented)
export abstract class OperationRef<Data, Variables> {
constructor(dataConnect: DataConnect, name: string, variables: Variables, options?: RefOptions | undefined);
// (undocumented)
readonly dataConnect: DataConnect;
// (undocumented)
abstract execute(): Promise<OperationResult<Data, Variables>>;
// (undocumented)
readonly name: string;
// (undocumented)
readonly options?: RefOptions | undefined;
// (undocumented)
readonly variables: Variables;
}

// @public (undocumented)
export interface OperationResult<Data, Variables> {
// (undocumented)
data: Data;
// (undocumented)
dataConnect: DataConnect;
// (undocumented)
ref: OperationRef<Data, Variables>;
// (undocumented)
variables: Variables;
}

// @public (undocumented)
export class QueryRef<Data, Variables> extends OperationRef<Data, Variables> {
// (undocumented)
execute(): Promise<QueryResult<Data, Variables>>;
}

// @public
export interface QueryResult<Data, Variables> extends OperationResult<Data, Variables> {
// (undocumented)
ref: QueryRef<Data, Variables>;
}

// @public
export interface RefOptions {
impersonate?: ImpersonateAuthenticated | ImpersonateUnauthenticated;
}

```
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading
Loading