@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, 07:15 UTC

main
ts 47 lines 1.51 KB
Raw
1 import type * as healthlake from "@distilled.cloud/aws/healthlake";
2 import * as Binding from "alchemy/Binding";
3 import type * as Effect from "effect/Effect";
4 import type { FHIRDatastore } from "./FHIRDatastore.ts";
5
6 /**
7 * `ListFHIRExportJobs` request with `DatastoreId` injected from the bound
8 * data store.
9 */
10 export interface ListFHIRExportJobsRequest extends Omit<
11 healthlake.ListFHIRExportJobsRequest,
12 "DatastoreId"
13 > {}
14
15 /**
16 * Runtime binding for the `ListFHIRExportJobs` operation (IAM action
17 * `healthlake:ListFHIRExportJobs`), scoped to one {@link FHIRDatastore}.
18 *
19 * Lists the bulk FHIR export jobs of the bound data store, optionally
20 * filtered by name, status or submit-time window. Provide the implementation
21 * with `Effect.provide(AWS.HealthLake.ListFHIRExportJobsHttp)`.
22 *
23 * ### Exporting FHIR Data
24 * **Example:** List Recent Export Jobs
25 * ```typescript
26 * const listExports = yield* HealthLake.ListFHIRExportJobs(datastore);
27 *
28 * const jobs = yield* listExports({ JobStatus: "IN_PROGRESS" });
29 * // jobs.ExportJobPropertiesList, jobs.NextToken
30 * ```
31 *
32 * @binding
33 */
34 export interface ListFHIRExportJobs extends Binding.Service<
35 ListFHIRExportJobs,
36 "AWS.HealthLake.ListFHIRExportJobs",
37 (
38 datastore: FHIRDatastore,
39 ) => Effect.Effect<
40 (
41 request?: ListFHIRExportJobsRequest,
42 ) => Effect.Effect<healthlake.ListFHIRExportJobsResponse, healthlake.ListFHIRExportJobsError>
43 >
44 > {}
45 export const ListFHIRExportJobs = Binding.Service<ListFHIRExportJobs>(
46 "AWS.HealthLake.ListFHIRExportJobs",
47 );