SIGN IN SIGN UP

feat(dc): Add executeQuery and executeMutation APIs to Data Connect (#2979)

# API Changes
- Added `executeQuery()` and `executeMutation()` to `src/data-connect/data-connect.ts`. These allow users to call deployed operations with impersonated auth credentials.

# Testing
- New unit tests added which match the coverage of existing `executeGraphql*` APIs
- New integration tests added which more than match the coverage of existing `executeGraphql*` APIs

# Commits: 
* add in changes from stephenarosaj/fdc-impersonate

* finish adding in changes from stephenarosaj/fdc-impersonate

* update Google Inc. to Google LLC, run npm install; npm run build

* run npm apidocs

* remove public execute apis

* convert executeOperation api to OperationRef(...).execute() api

* remove internal client from operation refs

* cleanup javadocs to address workflow failures

* npm run apidocs

* spread GraphqlOptions arguments in OperationRefs and executeOperation functions

* convert unit tests to use spread args

* convert integration tests to use spread args

* add executeQuery test cases which do not provide impersonation options, bypassing auth policies

* add executeMutation test cases which do not provide impersonation options, bypassing auth policies

* run npm apidocs

* address try/catch comment

* address await and reject grouping comment

* address getUrl comments

* address insecureReason comment

* convert autopush resources to prod

* add RefOptions, [Operation,Query,Mutation]Ref, [Operation,Query,Mutation]Result to exported api

* revert OperationRef.execute() API to executeOperation API

* revert OperationRef.execute() API to executeOperation API

* revert tests to use DataConnect.executeOperation() API instead of OperationRef.execute() API

* revert package version

* update executeOperation API to return executeOperationResponse

* update comments

* add invalidateAdminArgs to handle variadic JS executeOperation arguments

* npm run apidocs for validateAdminArgs

* update validateAdminArgs documentation

* address validateAdminArgs and some test comments

* update validate-admin-args and add tests, address existing test comments, revert package changes

* update tests

* update tests

* address mutation test comments

* address prod url comments

* finally fixed unit tests

* REALLY fixed unit tests

* address comments, add DataConnect.executeQuery() and DataConnect.executeMutation() unit tests

* make validateAdminArgs internal

* address comments

* address documentation comment

* undo integration test changes

* remove empty checks

* remove length checks

* remove foreach checks

* address test comments

* revert package version

* revert package version to master

* revert package version to master

* update comments
S
Stephen Rosa committed
c9a3ee39e04669a8ed7089a2af6fe331b07136c7
Parent: 27c682a
Committed by GitHub <noreply@github.com> on 11/3/2025, 7:03:29 PM