@devries-cameron20 / t3code Mirror · read-only
Fork 0

The best way to control Claude Code, Codex and more from any computer or phone

Mirrored from https://github.com/Camo67/t3code.git

Synced Nov 21, 04:45 UTC

main
ts 50 lines 1.4 KB
Raw
1 import type * as firebasedataconnect from "@distilled.cloud/gcp/firebasedataconnect_v1";
2 import * as Binding from "alchemy/Binding";
3 import type { RuntimeContext } from "alchemy/RuntimeContext";
4 import type * as Effect from "effect/Effect";
5 import type { Service } from "./Service.ts";
6
7 export interface ExecuteGraphqlRequest extends Omit<
8 firebasedataconnect.ExecuteGraphqlProjectsLocationsServicesRequest,
9 "name"
10 > {}
11
12 /**
13 * Runtime binding for Data Connect `services.executeGraphql`.
14 *
15 * Executes any GraphQL query or mutation against the generated schema.
16 * Provide {@link ExecuteGraphqlHttp}.
17 *
18 * ### Executing GraphQL
19 * **Example:** Introspection-style query
20 * ```typescript
21 * const executeGraphql = yield* GCP.FirebaseDataConnect.ExecuteGraphql(
22 * service,
23 * );
24 * const result = yield* executeGraphql({
25 * body: { query: "{ __typename }" },
26 * });
27 * ```
28 *
29 * @binding
30 * @category FirebaseDataConnect
31 */
32 export interface ExecuteGraphql extends Binding.Service<
33 ExecuteGraphql,
34 "GCP.FirebaseDataConnect.ExecuteGraphql",
35 (
36 service: Service,
37 ) => Effect.Effect<
38 (
39 request: ExecuteGraphqlRequest,
40 ) => Effect.Effect<
41 firebasedataconnect.GraphqlResponse,
42 firebasedataconnect.ExecuteGraphqlProjectsLocationsServicesError,
43 RuntimeContext
44 >
45 >
46 > {}
47
48 export const ExecuteGraphql = Binding.Service<ExecuteGraphql>(
49 "GCP.FirebaseDataConnect.ExecuteGraphql",
50 );