| 1 | import { UpdateFileLink as updateFileLinkOp } from "@distilled.cloud/stripe/stripe"; |
| 2 | import * as Layer from "effect/Layer"; |
| 3 | import { makeHttpStripeIdBinding } from "./StripeHttp.ts"; |
| 4 | import { UpdateFileLink } from "./UpdateFileLink.ts"; |
| 5 | |
| 6 | /** |
| 7 | * HTTP implementation of {@link UpdateFileLink}. Provide it on the |
| 8 | * Function or Worker Effect. |
| 9 | * |
| 10 | * @layer |
| 11 | * @product Files |
| 12 | * @provides Stripe.UpdateFileLink |
| 13 | */ |
| 14 | export const UpdateFileLinkHttp = Layer.effect( |
| 15 | UpdateFileLink, |
| 16 | makeHttpStripeIdBinding({ |
| 17 | tag: "Stripe.UpdateFileLink", |
| 18 | operation: updateFileLinkOp, |
| 19 | idField: "link", |
| 20 | permissions: ["files_write"], |
| 21 | }), |
| 22 | ); |