| 1 | import { GetRadarValueListItem } from "@distilled.cloud/stripe/stripe"; |
| 2 | import * as Layer from "effect/Layer"; |
| 3 | import { RetrieveRadarValueListItem } from "./RetrieveRadarValueListItem.ts"; |
| 4 | import { makeHttpStripeIdBinding } from "./StripeHttp.ts"; |
| 5 | |
| 6 | /** |
| 7 | * HTTP implementation of {@link RetrieveRadarValueListItem}. |
| 8 | * |
| 9 | * @layer |
| 10 | * @product Radar |
| 11 | * @provides Stripe.RetrieveRadarValueListItem |
| 12 | */ |
| 13 | export const RetrieveRadarValueListItemHttp = Layer.effect( |
| 14 | RetrieveRadarValueListItem, |
| 15 | makeHttpStripeIdBinding({ |
| 16 | tag: "Stripe.RetrieveRadarValueListItem", |
| 17 | operation: GetRadarValueListItem, |
| 18 | idField: "item", |
| 19 | permissions: ["radar_read"], |
| 20 | }), |
| 21 | ); |