@effect-aws/client-kafkaconnect 1.10.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (53) hide show
  1. package/Errors/package.json +6 -0
  2. package/KafkaConnectClientInstance/package.json +6 -0
  3. package/KafkaConnectService/package.json +6 -0
  4. package/KafkaConnectServiceConfig/package.json +6 -0
  5. package/LICENSE +19 -0
  6. package/README.md +58 -0
  7. package/dist/cjs/Errors.d.ts +15 -0
  8. package/dist/cjs/Errors.d.ts.map +1 -0
  9. package/dist/cjs/Errors.js +14 -0
  10. package/dist/cjs/Errors.js.map +1 -0
  11. package/dist/cjs/KafkaConnectClientInstance.d.ts +24 -0
  12. package/dist/cjs/KafkaConnectClientInstance.d.ts.map +1 -0
  13. package/dist/cjs/KafkaConnectClientInstance.js +50 -0
  14. package/dist/cjs/KafkaConnectClientInstance.js.map +1 -0
  15. package/dist/cjs/KafkaConnectService.d.ts +118 -0
  16. package/dist/cjs/KafkaConnectService.d.ts.map +1 -0
  17. package/dist/cjs/KafkaConnectService.js +77 -0
  18. package/dist/cjs/KafkaConnectService.js.map +1 -0
  19. package/dist/cjs/KafkaConnectServiceConfig.d.ts +25 -0
  20. package/dist/cjs/KafkaConnectServiceConfig.d.ts.map +1 -0
  21. package/dist/cjs/KafkaConnectServiceConfig.js +35 -0
  22. package/dist/cjs/KafkaConnectServiceConfig.js.map +1 -0
  23. package/dist/cjs/index.d.ts +44 -0
  24. package/dist/cjs/index.d.ts.map +1 -0
  25. package/dist/cjs/index.js +56 -0
  26. package/dist/cjs/index.js.map +1 -0
  27. package/dist/dts/Errors.d.ts +15 -0
  28. package/dist/dts/Errors.d.ts.map +1 -0
  29. package/dist/dts/KafkaConnectClientInstance.d.ts +24 -0
  30. package/dist/dts/KafkaConnectClientInstance.d.ts.map +1 -0
  31. package/dist/dts/KafkaConnectService.d.ts +118 -0
  32. package/dist/dts/KafkaConnectService.d.ts.map +1 -0
  33. package/dist/dts/KafkaConnectServiceConfig.d.ts +25 -0
  34. package/dist/dts/KafkaConnectServiceConfig.d.ts.map +1 -0
  35. package/dist/dts/index.d.ts +44 -0
  36. package/dist/dts/index.d.ts.map +1 -0
  37. package/dist/esm/Errors.js +11 -0
  38. package/dist/esm/Errors.js.map +1 -0
  39. package/dist/esm/KafkaConnectClientInstance.js +23 -0
  40. package/dist/esm/KafkaConnectClientInstance.js.map +1 -0
  41. package/dist/esm/KafkaConnectService.js +50 -0
  42. package/dist/esm/KafkaConnectService.js.map +1 -0
  43. package/dist/esm/KafkaConnectServiceConfig.js +31 -0
  44. package/dist/esm/KafkaConnectServiceConfig.js.map +1 -0
  45. package/dist/esm/index.js +27 -0
  46. package/dist/esm/index.js.map +1 -0
  47. package/dist/esm/package.json +4 -0
  48. package/package.json +71 -0
  49. package/src/Errors.ts +32 -0
  50. package/src/KafkaConnectClientInstance.ts +33 -0
  51. package/src/KafkaConnectService.ts +511 -0
  52. package/src/KafkaConnectServiceConfig.ts +52 -0
  53. package/src/index.ts +50 -0
@@ -0,0 +1,6 @@
1
+ {
2
+ "main": "../dist/cjs/Errors.js",
3
+ "module": "../dist/esm/Errors.js",
4
+ "types": "../dist/dts/Errors.d.ts",
5
+ "sideEffects": []
6
+ }
@@ -0,0 +1,6 @@
1
+ {
2
+ "main": "../dist/cjs/KafkaConnectClientInstance.js",
3
+ "module": "../dist/esm/KafkaConnectClientInstance.js",
4
+ "types": "../dist/dts/KafkaConnectClientInstance.d.ts",
5
+ "sideEffects": []
6
+ }
@@ -0,0 +1,6 @@
1
+ {
2
+ "main": "../dist/cjs/KafkaConnectService.js",
3
+ "module": "../dist/esm/KafkaConnectService.js",
4
+ "types": "../dist/dts/KafkaConnectService.d.ts",
5
+ "sideEffects": []
6
+ }
@@ -0,0 +1,6 @@
1
+ {
2
+ "main": "../dist/cjs/KafkaConnectServiceConfig.js",
3
+ "module": "../dist/esm/KafkaConnectServiceConfig.js",
4
+ "types": "../dist/dts/KafkaConnectServiceConfig.d.ts",
5
+ "sideEffects": []
6
+ }
package/LICENSE ADDED
@@ -0,0 +1,19 @@
1
+ Copyright (c) 2025 Victor Korzunin
2
+
3
+ Permission is hereby granted, free of charge, to any person obtaining a copy
4
+ of this software and associated documentation files (the "Software"), to deal
5
+ in the Software without restriction, including without limitation the rights
6
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
7
+ copies of the Software, and to permit persons to whom the Software is
8
+ furnished to do so, subject to the following conditions:
9
+
10
+ The above copyright notice and this permission notice shall be included in all
11
+ copies or substantial portions of the Software.
12
+
13
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
18
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
19
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,58 @@
1
+ # @effect-aws/client-kafkaconnect
2
+
3
+ [![npm version](https://img.shields.io/npm/v/%40effect-aws%2Fclient-kafkaconnect?color=brightgreen&label=npm%20package)](https://www.npmjs.com/package/@effect-aws/client-kafkaconnect)
4
+ [![npm downloads](https://img.shields.io/npm/dm/%40effect-aws%2Fclient-kafkaconnect)](https://www.npmjs.com/package/@effect-aws/client-kafkaconnect)
5
+
6
+ ## Installation
7
+
8
+ ```bash
9
+ npm install --save @effect-aws/client-kafkaconnect
10
+ ```
11
+
12
+ ## Usage
13
+
14
+ With default KafkaConnectClient instance:
15
+
16
+ ```typescript
17
+ import { KafkaConnect } from "@effect-aws/client-kafkaconnect";
18
+
19
+ const program = KafkaConnect.listConnectors(args);
20
+
21
+ const result = pipe(
22
+ program,
23
+ Effect.provide(KafkaConnect.defaultLayer),
24
+ Effect.runPromise,
25
+ );
26
+ ```
27
+
28
+ With custom KafkaConnectClient instance:
29
+
30
+ ```typescript
31
+ import { KafkaConnect } from "@effect-aws/client-kafkaconnect";
32
+
33
+ const program = KafkaConnect.listConnectors(args);
34
+
35
+ const result = await pipe(
36
+ program,
37
+ Effect.provide(
38
+ KafkaConnect.baseLayer(() => new KafkaConnectClient({ region: "eu-central-1" })),
39
+ ),
40
+ Effect.runPromise,
41
+ );
42
+ ```
43
+
44
+ With custom KafkaConnectClient configuration:
45
+
46
+ ```typescript
47
+ import { KafkaConnect } from "@effect-aws/client-kafkaconnect";
48
+
49
+ const program = KafkaConnect.listConnectors(args);
50
+
51
+ const result = await pipe(
52
+ program,
53
+ Effect.provide(KafkaConnect.layer({ region: "eu-central-1" })),
54
+ Effect.runPromiseExit,
55
+ );
56
+ ```
57
+
58
+ or use `KafkaConnect.baseLayer((default) => new KafkaConnectClient({ ...default, region: "eu-central-1" }))`
@@ -0,0 +1,15 @@
1
+ import type { BadRequestException, ConflictException, ForbiddenException, InternalServerErrorException, NotFoundException, ServiceUnavailableException, TooManyRequestsException, UnauthorizedException } from "@aws-sdk/client-kafkaconnect";
2
+ import type { TaggedException } from "@effect-aws/commons";
3
+ export declare const AllServiceErrors: readonly ["BadRequestException", "ConflictException", "ForbiddenException", "InternalServerErrorException", "NotFoundException", "ServiceUnavailableException", "TooManyRequestsException", "UnauthorizedException"];
4
+ export type BadRequestError = TaggedException<BadRequestException>;
5
+ export type ConflictError = TaggedException<ConflictException>;
6
+ export type ForbiddenError = TaggedException<ForbiddenException>;
7
+ export type InternalServerError = TaggedException<InternalServerErrorException>;
8
+ export type NotFoundError = TaggedException<NotFoundException>;
9
+ export type ServiceUnavailableError = TaggedException<ServiceUnavailableException>;
10
+ export type TooManyRequestsError = TaggedException<TooManyRequestsException>;
11
+ export type UnauthorizedError = TaggedException<UnauthorizedException>;
12
+ export type SdkError = TaggedException<Error & {
13
+ name: "SdkError";
14
+ }>;
15
+ //# sourceMappingURL=Errors.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Errors.d.ts","sourceRoot":"","sources":["../../src/Errors.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,mBAAmB,EACnB,iBAAiB,EACjB,kBAAkB,EAClB,4BAA4B,EAC5B,iBAAiB,EACjB,2BAA2B,EAC3B,wBAAwB,EACxB,qBAAqB,EACtB,MAAM,8BAA8B,CAAC;AACtC,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAE3D,eAAO,MAAM,gBAAgB,sNASnB,CAAC;AAEX,MAAM,MAAM,eAAe,GAAG,eAAe,CAAC,mBAAmB,CAAC,CAAC;AACnE,MAAM,MAAM,aAAa,GAAG,eAAe,CAAC,iBAAiB,CAAC,CAAC;AAC/D,MAAM,MAAM,cAAc,GAAG,eAAe,CAAC,kBAAkB,CAAC,CAAC;AACjE,MAAM,MAAM,mBAAmB,GAAG,eAAe,CAAC,4BAA4B,CAAC,CAAC;AAChF,MAAM,MAAM,aAAa,GAAG,eAAe,CAAC,iBAAiB,CAAC,CAAC;AAC/D,MAAM,MAAM,uBAAuB,GAAG,eAAe,CAAC,2BAA2B,CAAC,CAAC;AACnF,MAAM,MAAM,oBAAoB,GAAG,eAAe,CAAC,wBAAwB,CAAC,CAAC;AAC7E,MAAM,MAAM,iBAAiB,GAAG,eAAe,CAAC,qBAAqB,CAAC,CAAC;AACvE,MAAM,MAAM,QAAQ,GAAG,eAAe,CAAC,KAAK,GAAG;IAAE,IAAI,EAAE,UAAU,CAAA;CAAE,CAAC,CAAC"}
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.AllServiceErrors = void 0;
4
+ exports.AllServiceErrors = [
5
+ "BadRequestException",
6
+ "ConflictException",
7
+ "ForbiddenException",
8
+ "InternalServerErrorException",
9
+ "NotFoundException",
10
+ "ServiceUnavailableException",
11
+ "TooManyRequestsException",
12
+ "UnauthorizedException",
13
+ ];
14
+ //# sourceMappingURL=Errors.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Errors.js","sourceRoot":"","sources":["../../src/Errors.ts"],"names":[],"mappings":";;;AAYa,QAAA,gBAAgB,GAAG;IAC9B,qBAAqB;IACrB,mBAAmB;IACnB,oBAAoB;IACpB,8BAA8B;IAC9B,mBAAmB;IACnB,6BAA6B;IAC7B,0BAA0B;IAC1B,uBAAuB;CACf,CAAC"}
@@ -0,0 +1,24 @@
1
+ /**
2
+ * @since 1.0.0
3
+ */
4
+ import { KafkaConnectClient } from "@aws-sdk/client-kafkaconnect";
5
+ import { Context, Effect, Layer } from "effect";
6
+ declare const KafkaConnectClientInstance_base: Context.TagClass<KafkaConnectClientInstance, "@effect-aws/client-kafkaconnect/KafkaConnectClientInstance", KafkaConnectClient>;
7
+ /**
8
+ * @since 1.0.0
9
+ * @category tags
10
+ */
11
+ export declare class KafkaConnectClientInstance extends KafkaConnectClientInstance_base {
12
+ }
13
+ /**
14
+ * @since 1.0.0
15
+ * @category constructors
16
+ */
17
+ export declare const make: Effect.Effect<KafkaConnectClient, never, import("effect/Scope").Scope>;
18
+ /**
19
+ * @since 1.0.0
20
+ * @category layers
21
+ */
22
+ export declare const layer: Layer.Layer<KafkaConnectClientInstance, never, never>;
23
+ export {};
24
+ //# sourceMappingURL=KafkaConnectClientInstance.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"KafkaConnectClientInstance.d.ts","sourceRoot":"","sources":["../../src/KafkaConnectClientInstance.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,kBAAkB,EAAE,MAAM,8BAA8B,CAAC;AAClE,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,QAAQ,CAAC;;AAGhD;;;GAGG;AACH,qBAAa,0BAA2B,SAAQ,+BAEG;CAAG;AAEtD;;;GAGG;AACH,eAAO,MAAM,IAAI,wEAOhB,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,KAAK,uDAAiD,CAAC"}
@@ -0,0 +1,50 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || function (mod) {
19
+ if (mod && mod.__esModule) return mod;
20
+ var result = {};
21
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
+ __setModuleDefault(result, mod);
23
+ return result;
24
+ };
25
+ Object.defineProperty(exports, "__esModule", { value: true });
26
+ exports.layer = exports.make = exports.KafkaConnectClientInstance = void 0;
27
+ /**
28
+ * @since 1.0.0
29
+ */
30
+ const client_kafkaconnect_1 = require("@aws-sdk/client-kafkaconnect");
31
+ const effect_1 = require("effect");
32
+ const KafkaConnectServiceConfig = __importStar(require("./KafkaConnectServiceConfig.js"));
33
+ /**
34
+ * @since 1.0.0
35
+ * @category tags
36
+ */
37
+ class KafkaConnectClientInstance extends effect_1.Context.Tag("@effect-aws/client-kafkaconnect/KafkaConnectClientInstance")() {
38
+ }
39
+ exports.KafkaConnectClientInstance = KafkaConnectClientInstance;
40
+ /**
41
+ * @since 1.0.0
42
+ * @category constructors
43
+ */
44
+ exports.make = effect_1.Effect.flatMap(KafkaConnectServiceConfig.toKafkaConnectClientConfig, (config) => effect_1.Effect.acquireRelease(effect_1.Effect.sync(() => new client_kafkaconnect_1.KafkaConnectClient(config)), (client) => effect_1.Effect.sync(() => client.destroy())));
45
+ /**
46
+ * @since 1.0.0
47
+ * @category layers
48
+ */
49
+ exports.layer = effect_1.Layer.scoped(KafkaConnectClientInstance, exports.make);
50
+ //# sourceMappingURL=KafkaConnectClientInstance.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"KafkaConnectClientInstance.js","sourceRoot":"","sources":["../../src/KafkaConnectClientInstance.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;GAEG;AACH,sEAAkE;AAClE,mCAAgD;AAChD,0FAA4E;AAE5E;;;GAGG;AACH,MAAa,0BAA2B,SAAQ,gBAAO,CAAC,GAAG,CACzD,4DAA4D,CAC7D,EAAkD;CAAG;AAFtD,gEAEsD;AAEtD;;;GAGG;AACU,QAAA,IAAI,GAAG,eAAM,CAAC,OAAO,CAChC,yBAAyB,CAAC,0BAA0B,EACpD,CAAC,MAAM,EAAE,EAAE,CACT,eAAM,CAAC,cAAc,CACnB,eAAM,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,IAAI,wCAAkB,CAAC,MAAM,CAAC,CAAC,EACjD,CAAC,MAAM,EAAE,EAAE,CAAC,eAAM,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,MAAM,CAAC,OAAO,EAAE,CAAC,CAChD,CACJ,CAAC;AAEF;;;GAGG;AACU,QAAA,KAAK,GAAG,cAAK,CAAC,MAAM,CAAC,0BAA0B,EAAE,YAAI,CAAC,CAAC"}
@@ -0,0 +1,118 @@
1
+ /**
2
+ * @since 1.0.0
3
+ */
4
+ import { type CreateConnectorCommandInput, type CreateConnectorCommandOutput, type CreateCustomPluginCommandInput, type CreateCustomPluginCommandOutput, type CreateWorkerConfigurationCommandInput, type CreateWorkerConfigurationCommandOutput, type DeleteConnectorCommandInput, type DeleteConnectorCommandOutput, type DeleteCustomPluginCommandInput, type DeleteCustomPluginCommandOutput, type DeleteWorkerConfigurationCommandInput, type DeleteWorkerConfigurationCommandOutput, type DescribeConnectorCommandInput, type DescribeConnectorCommandOutput, type DescribeConnectorOperationCommandInput, type DescribeConnectorOperationCommandOutput, type DescribeCustomPluginCommandInput, type DescribeCustomPluginCommandOutput, type DescribeWorkerConfigurationCommandInput, type DescribeWorkerConfigurationCommandOutput, type KafkaConnectClient, type KafkaConnectClientConfig, type ListConnectorOperationsCommandInput, type ListConnectorOperationsCommandOutput, type ListConnectorsCommandInput, type ListConnectorsCommandOutput, type ListCustomPluginsCommandInput, type ListCustomPluginsCommandOutput, type ListTagsForResourceCommandInput, type ListTagsForResourceCommandOutput, type ListWorkerConfigurationsCommandInput, type ListWorkerConfigurationsCommandOutput, type TagResourceCommandInput, type TagResourceCommandOutput, type UntagResourceCommandInput, type UntagResourceCommandOutput, type UpdateConnectorCommandInput, type UpdateConnectorCommandOutput } from "@aws-sdk/client-kafkaconnect";
5
+ import type { HttpHandlerOptions, ServiceLogger } from "@effect-aws/commons";
6
+ import type { Cause } from "effect";
7
+ import { Effect, Layer } from "effect";
8
+ import type { BadRequestError, ConflictError, ForbiddenError, InternalServerError, NotFoundError, SdkError, ServiceUnavailableError, TooManyRequestsError, UnauthorizedError } from "./Errors.js";
9
+ import * as Instance from "./KafkaConnectClientInstance.js";
10
+ interface KafkaConnectService$ {
11
+ readonly _: unique symbol;
12
+ /**
13
+ * @see {@link CreateConnectorCommand}
14
+ */
15
+ createConnector(args: CreateConnectorCommandInput, options?: HttpHandlerOptions): Effect.Effect<CreateConnectorCommandOutput, Cause.TimeoutException | SdkError | BadRequestError | ConflictError | ForbiddenError | InternalServerError | NotFoundError | ServiceUnavailableError | TooManyRequestsError | UnauthorizedError>;
16
+ /**
17
+ * @see {@link CreateCustomPluginCommand}
18
+ */
19
+ createCustomPlugin(args: CreateCustomPluginCommandInput, options?: HttpHandlerOptions): Effect.Effect<CreateCustomPluginCommandOutput, Cause.TimeoutException | SdkError | BadRequestError | ConflictError | ForbiddenError | InternalServerError | NotFoundError | ServiceUnavailableError | TooManyRequestsError | UnauthorizedError>;
20
+ /**
21
+ * @see {@link CreateWorkerConfigurationCommand}
22
+ */
23
+ createWorkerConfiguration(args: CreateWorkerConfigurationCommandInput, options?: HttpHandlerOptions): Effect.Effect<CreateWorkerConfigurationCommandOutput, Cause.TimeoutException | SdkError | BadRequestError | ConflictError | ForbiddenError | InternalServerError | NotFoundError | ServiceUnavailableError | TooManyRequestsError | UnauthorizedError>;
24
+ /**
25
+ * @see {@link DeleteConnectorCommand}
26
+ */
27
+ deleteConnector(args: DeleteConnectorCommandInput, options?: HttpHandlerOptions): Effect.Effect<DeleteConnectorCommandOutput, Cause.TimeoutException | SdkError | BadRequestError | ForbiddenError | InternalServerError | NotFoundError | ServiceUnavailableError | TooManyRequestsError | UnauthorizedError>;
28
+ /**
29
+ * @see {@link DeleteCustomPluginCommand}
30
+ */
31
+ deleteCustomPlugin(args: DeleteCustomPluginCommandInput, options?: HttpHandlerOptions): Effect.Effect<DeleteCustomPluginCommandOutput, Cause.TimeoutException | SdkError | BadRequestError | ForbiddenError | InternalServerError | NotFoundError | ServiceUnavailableError | TooManyRequestsError | UnauthorizedError>;
32
+ /**
33
+ * @see {@link DeleteWorkerConfigurationCommand}
34
+ */
35
+ deleteWorkerConfiguration(args: DeleteWorkerConfigurationCommandInput, options?: HttpHandlerOptions): Effect.Effect<DeleteWorkerConfigurationCommandOutput, Cause.TimeoutException | SdkError | BadRequestError | ForbiddenError | InternalServerError | NotFoundError | ServiceUnavailableError | TooManyRequestsError | UnauthorizedError>;
36
+ /**
37
+ * @see {@link DescribeConnectorCommand}
38
+ */
39
+ describeConnector(args: DescribeConnectorCommandInput, options?: HttpHandlerOptions): Effect.Effect<DescribeConnectorCommandOutput, Cause.TimeoutException | SdkError | BadRequestError | ForbiddenError | InternalServerError | NotFoundError | ServiceUnavailableError | TooManyRequestsError | UnauthorizedError>;
40
+ /**
41
+ * @see {@link DescribeConnectorOperationCommand}
42
+ */
43
+ describeConnectorOperation(args: DescribeConnectorOperationCommandInput, options?: HttpHandlerOptions): Effect.Effect<DescribeConnectorOperationCommandOutput, Cause.TimeoutException | SdkError | BadRequestError | ForbiddenError | InternalServerError | NotFoundError | ServiceUnavailableError | TooManyRequestsError | UnauthorizedError>;
44
+ /**
45
+ * @see {@link DescribeCustomPluginCommand}
46
+ */
47
+ describeCustomPlugin(args: DescribeCustomPluginCommandInput, options?: HttpHandlerOptions): Effect.Effect<DescribeCustomPluginCommandOutput, Cause.TimeoutException | SdkError | BadRequestError | ForbiddenError | InternalServerError | NotFoundError | ServiceUnavailableError | TooManyRequestsError | UnauthorizedError>;
48
+ /**
49
+ * @see {@link DescribeWorkerConfigurationCommand}
50
+ */
51
+ describeWorkerConfiguration(args: DescribeWorkerConfigurationCommandInput, options?: HttpHandlerOptions): Effect.Effect<DescribeWorkerConfigurationCommandOutput, Cause.TimeoutException | SdkError | BadRequestError | ForbiddenError | InternalServerError | NotFoundError | ServiceUnavailableError | TooManyRequestsError | UnauthorizedError>;
52
+ /**
53
+ * @see {@link ListConnectorOperationsCommand}
54
+ */
55
+ listConnectorOperations(args: ListConnectorOperationsCommandInput, options?: HttpHandlerOptions): Effect.Effect<ListConnectorOperationsCommandOutput, Cause.TimeoutException | SdkError | BadRequestError | ForbiddenError | InternalServerError | NotFoundError | ServiceUnavailableError | TooManyRequestsError | UnauthorizedError>;
56
+ /**
57
+ * @see {@link ListConnectorsCommand}
58
+ */
59
+ listConnectors(args: ListConnectorsCommandInput, options?: HttpHandlerOptions): Effect.Effect<ListConnectorsCommandOutput, Cause.TimeoutException | SdkError | BadRequestError | ForbiddenError | InternalServerError | NotFoundError | ServiceUnavailableError | TooManyRequestsError | UnauthorizedError>;
60
+ /**
61
+ * @see {@link ListCustomPluginsCommand}
62
+ */
63
+ listCustomPlugins(args: ListCustomPluginsCommandInput, options?: HttpHandlerOptions): Effect.Effect<ListCustomPluginsCommandOutput, Cause.TimeoutException | SdkError | BadRequestError | ForbiddenError | InternalServerError | NotFoundError | ServiceUnavailableError | TooManyRequestsError | UnauthorizedError>;
64
+ /**
65
+ * @see {@link ListTagsForResourceCommand}
66
+ */
67
+ listTagsForResource(args: ListTagsForResourceCommandInput, options?: HttpHandlerOptions): Effect.Effect<ListTagsForResourceCommandOutput, Cause.TimeoutException | SdkError | BadRequestError | ForbiddenError | InternalServerError | NotFoundError | ServiceUnavailableError | TooManyRequestsError | UnauthorizedError>;
68
+ /**
69
+ * @see {@link ListWorkerConfigurationsCommand}
70
+ */
71
+ listWorkerConfigurations(args: ListWorkerConfigurationsCommandInput, options?: HttpHandlerOptions): Effect.Effect<ListWorkerConfigurationsCommandOutput, Cause.TimeoutException | SdkError | BadRequestError | ForbiddenError | InternalServerError | NotFoundError | ServiceUnavailableError | TooManyRequestsError | UnauthorizedError>;
72
+ /**
73
+ * @see {@link TagResourceCommand}
74
+ */
75
+ tagResource(args: TagResourceCommandInput, options?: HttpHandlerOptions): Effect.Effect<TagResourceCommandOutput, Cause.TimeoutException | SdkError | BadRequestError | ConflictError | ForbiddenError | InternalServerError | NotFoundError | ServiceUnavailableError | TooManyRequestsError | UnauthorizedError>;
76
+ /**
77
+ * @see {@link UntagResourceCommand}
78
+ */
79
+ untagResource(args: UntagResourceCommandInput, options?: HttpHandlerOptions): Effect.Effect<UntagResourceCommandOutput, Cause.TimeoutException | SdkError | BadRequestError | ForbiddenError | InternalServerError | NotFoundError | ServiceUnavailableError | TooManyRequestsError | UnauthorizedError>;
80
+ /**
81
+ * @see {@link UpdateConnectorCommand}
82
+ */
83
+ updateConnector(args: UpdateConnectorCommandInput, options?: HttpHandlerOptions): Effect.Effect<UpdateConnectorCommandOutput, Cause.TimeoutException | SdkError | BadRequestError | ForbiddenError | InternalServerError | NotFoundError | ServiceUnavailableError | TooManyRequestsError | UnauthorizedError>;
84
+ }
85
+ /**
86
+ * @since 1.0.0
87
+ * @category constructors
88
+ */
89
+ export declare const makeKafkaConnectService: Effect.Effect<KafkaConnectService$, never, Instance.KafkaConnectClientInstance>;
90
+ declare const KafkaConnectService_base: import("effect/Context").TagClass<KafkaConnectService, "@effect-aws/client-kafkaconnect/KafkaConnectService", KafkaConnectService$> & Effect.Tag.Proxy<KafkaConnectService, KafkaConnectService$> & {
91
+ use: <X>(body: (_: KafkaConnectService$) => X) => [X] extends [Effect.Effect<infer A, infer E, infer R>] ? Effect.Effect<A, E, KafkaConnectService | R> : [X] extends [PromiseLike<infer A_1>] ? Effect.Effect<A_1, Cause.UnknownException, KafkaConnectService> : Effect.Effect<X, never, KafkaConnectService>;
92
+ };
93
+ /**
94
+ * @since 1.0.0
95
+ * @category models
96
+ */
97
+ export declare class KafkaConnectService extends KafkaConnectService_base {
98
+ static readonly defaultLayer: Layer.Layer<KafkaConnectService, never, never>;
99
+ static readonly layer: (config: KafkaConnectService.Config) => Layer.Layer<KafkaConnectService, never, never>;
100
+ static readonly baseLayer: (evaluate: (defaultConfig: KafkaConnectClientConfig) => KafkaConnectClient) => Layer.Layer<KafkaConnectService, never, never>;
101
+ }
102
+ /**
103
+ * @since 1.0.0
104
+ */
105
+ export declare namespace KafkaConnectService {
106
+ /**
107
+ * @since 1.0.0
108
+ */
109
+ interface Config extends Omit<KafkaConnectClientConfig, "logger"> {
110
+ readonly logger?: ServiceLogger.ServiceLoggerConstructorProps | true;
111
+ }
112
+ /**
113
+ * @since 1.0.0
114
+ */
115
+ type Type = KafkaConnectService$;
116
+ }
117
+ export {};
118
+ //# sourceMappingURL=KafkaConnectService.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"KafkaConnectService.d.ts","sourceRoot":"","sources":["../../src/KafkaConnectService.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAEL,KAAK,2BAA2B,EAChC,KAAK,4BAA4B,EAEjC,KAAK,8BAA8B,EACnC,KAAK,+BAA+B,EAEpC,KAAK,qCAAqC,EAC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,CAAC,QAAQ,CAAC,KAAK,WAAY,oBAAoB,MAAM,oDAIvD;IACJ,MAAM,CAAC,QAAQ,CAAC,SAAS,aACb,CAAC,aAAa,EAAE,wBAAwB,KAAK,kBAAkB,oDASvE;CACL;AAED;;GAEG;AACH,MAAM,CAAC,OAAO,WAAW,mBAAmB,CAAC;IAC3C;;OAEG;IACH,UAAiB,MAAO,SAAQ,IAAI,CAAC,wBAAwB,EAAE,QAAQ,CAAC;QACtE,QAAQ,CAAC,MAAM,CAAC,EAAE,aAAa,CAAC,6BAA6B,GAAG,IAAI,CAAC;KACtE;IAED;;OAEG;IACH,KAAY,IAAI,GAAG,oBAAoB,CAAC;CACzC"}
@@ -0,0 +1,77 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || function (mod) {
19
+ if (mod && mod.__esModule) return mod;
20
+ var result = {};
21
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
+ __setModuleDefault(result, mod);
23
+ return result;
24
+ };
25
+ Object.defineProperty(exports, "__esModule", { value: true });
26
+ exports.KafkaConnectService = exports.makeKafkaConnectService = void 0;
27
+ /**
28
+ * @since 1.0.0
29
+ */
30
+ const client_kafkaconnect_1 = require("@aws-sdk/client-kafkaconnect");
31
+ const commons_1 = require("@effect-aws/commons");
32
+ const effect_1 = require("effect");
33
+ const Errors_js_1 = require("./Errors.js");
34
+ const Instance = __importStar(require("./KafkaConnectClientInstance.js"));
35
+ const KafkaConnectServiceConfig = __importStar(require("./KafkaConnectServiceConfig.js"));
36
+ const commands = {
37
+ CreateConnectorCommand: client_kafkaconnect_1.CreateConnectorCommand,
38
+ CreateCustomPluginCommand: client_kafkaconnect_1.CreateCustomPluginCommand,
39
+ CreateWorkerConfigurationCommand: client_kafkaconnect_1.CreateWorkerConfigurationCommand,
40
+ DeleteConnectorCommand: client_kafkaconnect_1.DeleteConnectorCommand,
41
+ DeleteCustomPluginCommand: client_kafkaconnect_1.DeleteCustomPluginCommand,
42
+ DeleteWorkerConfigurationCommand: client_kafkaconnect_1.DeleteWorkerConfigurationCommand,
43
+ DescribeConnectorCommand: client_kafkaconnect_1.DescribeConnectorCommand,
44
+ DescribeConnectorOperationCommand: client_kafkaconnect_1.DescribeConnectorOperationCommand,
45
+ DescribeCustomPluginCommand: client_kafkaconnect_1.DescribeCustomPluginCommand,
46
+ DescribeWorkerConfigurationCommand: client_kafkaconnect_1.DescribeWorkerConfigurationCommand,
47
+ ListConnectorOperationsCommand: client_kafkaconnect_1.ListConnectorOperationsCommand,
48
+ ListConnectorsCommand: client_kafkaconnect_1.ListConnectorsCommand,
49
+ ListCustomPluginsCommand: client_kafkaconnect_1.ListCustomPluginsCommand,
50
+ ListTagsForResourceCommand: client_kafkaconnect_1.ListTagsForResourceCommand,
51
+ ListWorkerConfigurationsCommand: client_kafkaconnect_1.ListWorkerConfigurationsCommand,
52
+ TagResourceCommand: client_kafkaconnect_1.TagResourceCommand,
53
+ UntagResourceCommand: client_kafkaconnect_1.UntagResourceCommand,
54
+ UpdateConnectorCommand: client_kafkaconnect_1.UpdateConnectorCommand,
55
+ };
56
+ /**
57
+ * @since 1.0.0
58
+ * @category constructors
59
+ */
60
+ exports.makeKafkaConnectService = effect_1.Effect.gen(function* () {
61
+ const client = yield* Instance.KafkaConnectClientInstance;
62
+ return yield* commons_1.Service.fromClientAndCommands(client, commands, {
63
+ errorTags: Errors_js_1.AllServiceErrors,
64
+ resolveClientConfig: KafkaConnectServiceConfig.toKafkaConnectClientConfig,
65
+ });
66
+ });
67
+ /**
68
+ * @since 1.0.0
69
+ * @category models
70
+ */
71
+ class KafkaConnectService extends effect_1.Effect.Tag("@effect-aws/client-kafkaconnect/KafkaConnectService")() {
72
+ static defaultLayer = effect_1.Layer.effect(this, exports.makeKafkaConnectService).pipe(effect_1.Layer.provide(Instance.layer));
73
+ static layer = (config) => effect_1.Layer.effect(this, exports.makeKafkaConnectService).pipe(effect_1.Layer.provide(Instance.layer), effect_1.Layer.provide(KafkaConnectServiceConfig.setKafkaConnectServiceConfig(config)));
74
+ static baseLayer = (evaluate) => effect_1.Layer.effect(this, exports.makeKafkaConnectService).pipe(effect_1.Layer.provide(effect_1.Layer.effect(Instance.KafkaConnectClientInstance, effect_1.Effect.map(KafkaConnectServiceConfig.toKafkaConnectClientConfig, evaluate))));
75
+ }
76
+ exports.KafkaConnectService = KafkaConnectService;
77
+ //# sourceMappingURL=KafkaConnectService.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"KafkaConnectService.js","sourceRoot":"","sources":["../../src/KafkaConnectService.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;GAEG;AACH,sEAyDsC;AAEtC,iDAA8C;AAE9C,mCAAuC;AAYvC,2CAA+C;AAC/C,0EAA4D;AAC5D,0FAA4E;AAE5E,MAAM,QAAQ,GAAG;IACf,sBAAsB,EAAtB,4CAAsB;IACtB,yBAAyB,EAAzB,+CAAyB;IACzB,gCAAgC,EAAhC,sDAAgC;IAChC,sBAAsB,EAAtB,4CAAsB;IACtB,yBAAyB,EAAzB,+CAAyB;IACzB,gCAAgC,EAAhC,sDAAgC;IAChC,wBAAwB,EAAxB,8CAAwB;IACxB,iCAAiC,EAAjC,uDAAiC;I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CACF,cAAK,CAAC,MAAM,CAAC,IAAI,EAAE,+BAAuB,CAAC,CAAC,IAAI,CAC9C,cAAK,CAAC,OAAO,CACX,cAAK,CAAC,MAAM,CACV,QAAQ,CAAC,0BAA0B,EACnC,eAAM,CAAC,GAAG,CAAC,yBAAyB,CAAC,0BAA0B,EAAE,QAAQ,CAAC,CAC3E,CACF,CACF,CAAC;;AApBN,kDAqBC"}
@@ -0,0 +1,25 @@
1
+ /**
2
+ * @since 1.0.0
3
+ */
4
+ import type { KafkaConnectClientConfig } from "@aws-sdk/client-kafkaconnect";
5
+ import { Effect, Layer } from "effect";
6
+ import type { KafkaConnectService } from "./KafkaConnectService.js";
7
+ /**
8
+ * @since 1.0.0
9
+ * @category kafkaconnect service config
10
+ */
11
+ export declare const withKafkaConnectServiceConfig: {
12
+ (config: KafkaConnectService.Config): <A, E, R>(effect: Effect.Effect<A, E, R>) => Effect.Effect<A, E, R>;
13
+ <A, E, R>(effect: Effect.Effect<A, E, R>, config: KafkaConnectService.Config): Effect.Effect<A, E, R>;
14
+ };
15
+ /**
16
+ * @since 1.0.0
17
+ * @category kafkaconnect service config
18
+ */
19
+ export declare const setKafkaConnectServiceConfig: (config: KafkaConnectService.Config) => Layer.Layer<never, never, never>;
20
+ /**
21
+ * @since 1.0.0
22
+ * @category adapters
23
+ */
24
+ export declare const toKafkaConnectClientConfig: Effect.Effect<KafkaConnectClientConfig>;
25
+ //# sourceMappingURL=KafkaConnectServiceConfig.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"KafkaConnectServiceConfig.d.ts","sourceRoot":"","sources":["../../src/KafkaConnectServiceConfig.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,8BAA8B,CAAC;AAE7E,OAAO,EAAE,MAAM,EAAY,KAAK,EAAE,MAAM,QAAQ,CAAC;AAGjD,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAWpE;;;GAGG;AACH,eAAO,MAAM,6BAA6B,EAAE;IAC1C,CAAC,MAAM,EAAE,mBAAmB,CAAC,MAAM,GAAG,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,MAAM,EAAE,MAAM,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,KAAK,MAAM,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC;IAC1G,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,MAAM,EAAE,MAAM,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,EAAE,MAAM,EAAE,mBAAmB,CAAC,MAAM,GAAG,MAAM,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC;CAKvG,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,4BAA4B,WAAY,oBAAoB,MAAM,qCAChB,CAAC;AAEhE;;;GAGG;AACH,eAAO,MAAM,0BAA0B,EAAE,MAAM,CAAC,MAAM,CAAC,wBAAwB,CAQ7E,CAAC"}
@@ -0,0 +1,35 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.toKafkaConnectClientConfig = exports.setKafkaConnectServiceConfig = exports.withKafkaConnectServiceConfig = void 0;
4
+ const commons_1 = require("@effect-aws/commons");
5
+ const effect_1 = require("effect");
6
+ const Function_1 = require("effect/Function");
7
+ const GlobalValue_1 = require("effect/GlobalValue");
8
+ /**
9
+ * @since 1.0.0
10
+ * @category kafkaconnect service config
11
+ */
12
+ const currentKafkaConnectServiceConfig = (0, GlobalValue_1.globalValue)("@effect-aws/client-kafkaconnect/currentKafkaConnectServiceConfig", () => effect_1.FiberRef.unsafeMake({}));
13
+ /**
14
+ * @since 1.0.0
15
+ * @category kafkaconnect service config
16
+ */
17
+ exports.withKafkaConnectServiceConfig = (0, Function_1.dual)(2, (effect, config) => effect_1.Effect.locally(effect, currentKafkaConnectServiceConfig, config));
18
+ /**
19
+ * @since 1.0.0
20
+ * @category kafkaconnect service config
21
+ */
22
+ const setKafkaConnectServiceConfig = (config) => effect_1.Layer.locallyScoped(currentKafkaConnectServiceConfig, config);
23
+ exports.setKafkaConnectServiceConfig = setKafkaConnectServiceConfig;
24
+ /**
25
+ * @since 1.0.0
26
+ * @category adapters
27
+ */
28
+ exports.toKafkaConnectClientConfig = effect_1.Effect.gen(function* () {
29
+ const { logger: serviceLogger, ...config } = yield* effect_1.FiberRef.get(currentKafkaConnectServiceConfig);
30
+ const logger = serviceLogger === true
31
+ ? yield* commons_1.ServiceLogger.toClientLogger(commons_1.ServiceLogger.defaultServiceLogger)
32
+ : (serviceLogger ? yield* commons_1.ServiceLogger.toClientLogger(commons_1.ServiceLogger.make(serviceLogger)) : undefined);
33
+ return { logger, ...config };
34
+ });
35
+ //# sourceMappingURL=KafkaConnectServiceConfig.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"KafkaConnectServiceConfig.js","sourceRoot":"","sources":["../../src/KafkaConnectServiceConfig.ts"],"names":[],"mappings":";;;AAIA,iDAAoD;AACpD,mCAAiD;AACjD,8CAAuC;AACvC,oDAAiD;AAGjD;;;GAGG;AACH,MAAM,gCAAgC,GAAG,IAAA,yBAAW,EAClD,kEAAkE,EAClE,GAAG,EAAE,CAAC,iBAAQ,CAAC,UAAU,CAA6B,EAAE,CAAC,CAC1D,CAAC;AAEF;;;GAGG;AACU,QAAA,6BAA6B,GAGtC,IAAA,eAAI,EACN,CAAC,EACD,CAAU,MAA8B,EAAE,MAAkC,EAA0B,EAAE,CACtG,eAAM,CAAC,OAAO,CAAC,MAAM,EAAE,gCAAgC,EAAE,MAAM,CAAC,CACnE,CAAC;AAEF;;;GAGG;AACI,MAAM,4BAA4B,GAAG,CAAC,MAAkC,EAAE,EAAE,CACjF,cAAK,CAAC,aAAa,CAAC,gCAAgC,EAAE,MAAM,CAAC,CAAC;AADnD,QAAA,4BAA4B,gCACuB;AAEhE;;;GAGG;AACU,QAAA,0BAA0B,GAA4C,eAAM,CAAC,GAAG,CAAC,QAAQ,CAAC;IACrG,MAAM,EAAE,MAAM,EAAE,aAAa,EAAE,GAAG,MAAM,EAAE,GAAG,KAAK,CAAC,CAAC,iBAAQ,CAAC,GAAG,CAAC,gCAAgC,CAAC,CAAC;IAEnG,MAAM,MAAM,GAAG,aAAa,KAAK,IAAI;QACnC,CAAC,CAAC,KAAK,CAAC,CAAC,uBAAa,CAAC,cAAc,CAAC,uBAAa,CAAC,oBAAoB,CAAC;QACzE,CAAC,CAAC,CAAC,aAAa,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,uBAAa,CAAC,cAAc,CAAC,uBAAa,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC;IAEzG,OAAO,EAAE,MAAM,EAAE,GAAG,MAAM,EAAE,CAAC;AAC/B,CAAC,CAAC,CAAC"}
@@ -0,0 +1,44 @@
1
+ /**
2
+ * @since 1.0.0
3
+ */
4
+ import { KafkaConnectService } from "./KafkaConnectService.js";
5
+ /**
6
+ * @since 1.0.0
7
+ */
8
+ export * from "./Errors.js";
9
+ /**
10
+ * @since 1.0.0
11
+ */
12
+ export * as KafkaConnectClientInstance from "./KafkaConnectClientInstance.js";
13
+ /**
14
+ * @since 1.0.0
15
+ */
16
+ export * as KafkaConnectServiceConfig from "./KafkaConnectServiceConfig.js";
17
+ /**
18
+ * @since 1.0.0
19
+ */
20
+ export * from "./KafkaConnectService.js";
21
+ /**
22
+ * @since 1.0.0
23
+ * @category exports
24
+ * @alias KafkaConnectService
25
+ */
26
+ export declare namespace KafkaConnect {
27
+ /**
28
+ * @since 1.0.0
29
+ * @alias KafkaConnectService.Config
30
+ */
31
+ type Config = KafkaConnectService.Config;
32
+ /**
33
+ * @since 1.0.0
34
+ * @alias KafkaConnectService.Type
35
+ */
36
+ type Type = KafkaConnectService.Type;
37
+ }
38
+ /**
39
+ * @since 1.0.0
40
+ * @category exports
41
+ * @alias KafkaConnectService
42
+ */
43
+ export declare const KafkaConnect: typeof KafkaConnectService;
44
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAE/D;;GAEG;AACH,cAAc,aAAa,CAAC;AAE5B;;GAEG;AACH,OAAO,KAAK,0BAA0B,MAAM,iCAAiC,CAAC;AAE9E;;GAEG;AACH,OAAO,KAAK,yBAAyB,MAAM,gCAAgC,CAAC;AAE5E;;GAEG;AACH,cAAc,0BAA0B,CAAC;AAEzC;;;;GAIG;AACH,MAAM,CAAC,OAAO,WAAW,YAAY,CAAC;IACpC;;;OAGG;IACH,KAAY,MAAM,GAAG,mBAAmB,CAAC,MAAM,CAAC;IAEhD;;;OAGG;IACH,KAAY,IAAI,GAAG,mBAAmB,CAAC,IAAI,CAAC;CAC7C;AAED;;;;GAIG;AACH,eAAO,MAAM,YAAY,4BAAsB,CAAC"}
@@ -0,0 +1,56 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
19
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
20
+ };
21
+ var __importStar = (this && this.__importStar) || function (mod) {
22
+ if (mod && mod.__esModule) return mod;
23
+ var result = {};
24
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
25
+ __setModuleDefault(result, mod);
26
+ return result;
27
+ };
28
+ Object.defineProperty(exports, "__esModule", { value: true });
29
+ exports.KafkaConnect = exports.KafkaConnectServiceConfig = exports.KafkaConnectClientInstance = void 0;
30
+ /**
31
+ * @since 1.0.0
32
+ */
33
+ const KafkaConnectService_js_1 = require("./KafkaConnectService.js");
34
+ /**
35
+ * @since 1.0.0
36
+ */
37
+ __exportStar(require("./Errors.js"), exports);
38
+ /**
39
+ * @since 1.0.0
40
+ */
41
+ exports.KafkaConnectClientInstance = __importStar(require("./KafkaConnectClientInstance.js"));
42
+ /**
43
+ * @since 1.0.0
44
+ */
45
+ exports.KafkaConnectServiceConfig = __importStar(require("./KafkaConnectServiceConfig.js"));
46
+ /**
47
+ * @since 1.0.0
48
+ */
49
+ __exportStar(require("./KafkaConnectService.js"), exports);
50
+ /**
51
+ * @since 1.0.0
52
+ * @category exports
53
+ * @alias KafkaConnectService
54
+ */
55
+ exports.KafkaConnect = KafkaConnectService_js_1.KafkaConnectService;
56
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;GAEG;AACH,qEAA+D;AAE/D;;GAEG;AACH,8CAA4B;AAE5B;;GAEG;AACH,8FAA8E;AAE9E;;GAEG;AACH,4FAA4E;AAE5E;;GAEG;AACH,2DAAyC;AAqBzC;;;;GAIG;AACU,QAAA,YAAY,GAAG,4CAAmB,CAAC"}