1import type * as qapps from "@distilled.cloud/aws/qapps";
2import type * as Effect from "effect/Effect";
3import * as Binding from "../../Binding.ts";
4import type { QApp } from "./QApp.ts";
5
6/**
7 * Request for {@link BatchDeleteCategory} — `instanceId` is injected from the bound Q App.
8 */
9export interface BatchDeleteCategoryRequest extends Omit<
10 qapps.BatchDeleteCategoryInput,
11 "instanceId"
12> {}
13
14/**
15 * Runtime binding for `qapps:BatchDeleteCategory`.
16 *
17 * Deletes library categories by id. Provide the implementation with
18 * `Effect.provide(AWS.QApps.BatchDeleteCategoryHttp)`.
19 * ### Categories
20 * **Example:** Delete Categories
21 * ```typescript
22 * // init — bind the operation to the Q App
23 * const batchDeleteCategory = yield* AWS.QApps.BatchDeleteCategory(app);
24 *
25 * // runtime
26 * yield* batchDeleteCategory({ categories: [categoryId] });
27 * ```
28 *
29 * @binding
30 */
31export interface BatchDeleteCategory extends Binding.Service<
32 BatchDeleteCategory,
33 "AWS.QApps.BatchDeleteCategory",
34 (
35 app: QApp,
36 ) => Effect.Effect<
37 (
38 request: BatchDeleteCategoryRequest,
39 ) => Effect.Effect<
40 qapps.BatchDeleteCategoryResponse,
41 qapps.BatchDeleteCategoryError
42 >
43 >
44> {}
45
46export const BatchDeleteCategory = Binding.Service<BatchDeleteCategory>(
47 "AWS.QApps.BatchDeleteCategory",
48);