| 1 | import * as firebasedataconnect from "@distilled.cloud/gcp/firebasedataconnect_v1"; |
| 2 | import * as Layer from "effect/Layer"; |
| 3 | import { makeServiceHttpBinding } from "./BindingHttp.ts"; |
| 4 | import { ExecuteGraphql } from "./ExecuteGraphql.ts"; |
| 5 | |
| 6 | /** |
| 7 | * HTTP implementation of {@link ExecuteGraphql}. |
| 8 | * |
| 9 | * @layer |
| 10 | * @provides GCP.FirebaseDataConnect.ExecuteGraphql |
| 11 | */ |
| 12 | export const ExecuteGraphqlHttp = Layer.effect( |
| 13 | ExecuteGraphql, |
| 14 | makeServiceHttpBinding({ |
| 15 | tag: "GCP.FirebaseDataConnect.ExecuteGraphql", |
| 16 | iam: { role: "roles/firebasedataconnect.dataAdmin" }, |
| 17 | operation: firebasedataconnect.executeGraphqlProjectsLocationsServices, |
| 18 | }), |
| 19 | ); |