@effect-aws/client-mq 1.10.9 → 2.0.0-beta.1
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.
- package/LICENSE +1 -1
- package/README.md +3 -3
- package/dist/dts/MqClientInstance.d.ts +4 -2
- package/dist/dts/MqClientInstance.d.ts.map +1 -1
- package/dist/dts/MqService.d.ts +29 -29
- package/dist/dts/MqService.d.ts.map +1 -1
- package/dist/dts/MqServiceConfig.d.ts +2 -1
- package/dist/dts/MqServiceConfig.d.ts.map +1 -1
- package/dist/esm/MqClientInstance.js +5 -3
- package/dist/esm/MqClientInstance.js.map +1 -1
- package/dist/esm/MqService.js +4 -2
- package/dist/esm/MqService.js.map +1 -1
- package/dist/esm/MqServiceConfig.js +7 -6
- package/dist/esm/MqServiceConfig.js.map +1 -1
- package/package.json +8 -14
- package/src/MqClientInstance.ts +6 -4
- package/src/MqService.ts +30 -28
- package/src/MqServiceConfig.ts +8 -7
- package/dist/cjs/Errors.d.ts +0 -13
- package/dist/cjs/Errors.d.ts.map +0 -1
- package/dist/cjs/Errors.js +0 -12
- package/dist/cjs/Errors.js.map +0 -1
- package/dist/cjs/MqClientInstance.d.ts +0 -24
- package/dist/cjs/MqClientInstance.d.ts.map +0 -1
- package/dist/cjs/MqClientInstance.js +0 -50
- package/dist/cjs/MqClientInstance.js.map +0 -1
- package/dist/cjs/MqService.d.ts +0 -142
- package/dist/cjs/MqService.d.ts.map +0 -1
- package/dist/cjs/MqService.js +0 -83
- package/dist/cjs/MqService.js.map +0 -1
- package/dist/cjs/MqServiceConfig.d.ts +0 -25
- package/dist/cjs/MqServiceConfig.d.ts.map +0 -1
- package/dist/cjs/MqServiceConfig.js +0 -35
- package/dist/cjs/MqServiceConfig.js.map +0 -1
- package/dist/cjs/index.d.ts +0 -44
- package/dist/cjs/index.d.ts.map +0 -1
- package/dist/cjs/index.js +0 -56
- package/dist/cjs/index.js.map +0 -1
package/LICENSE
CHANGED
package/README.md
CHANGED
|
@@ -16,7 +16,7 @@ With default MqClient instance:
|
|
|
16
16
|
```typescript
|
|
17
17
|
import { Mq } from "@effect-aws/client-mq";
|
|
18
18
|
|
|
19
|
-
const program = Mq.listBrokers(args);
|
|
19
|
+
const program = Mq.use((svc) => svc.listBrokers(args));
|
|
20
20
|
|
|
21
21
|
const result = pipe(
|
|
22
22
|
program,
|
|
@@ -30,7 +30,7 @@ With custom MqClient instance:
|
|
|
30
30
|
```typescript
|
|
31
31
|
import { Mq } from "@effect-aws/client-mq";
|
|
32
32
|
|
|
33
|
-
const program = Mq.listBrokers(args);
|
|
33
|
+
const program = Mq.use((svc) => svc.listBrokers(args));
|
|
34
34
|
|
|
35
35
|
const result = await pipe(
|
|
36
36
|
program,
|
|
@@ -46,7 +46,7 @@ With custom MqClient configuration:
|
|
|
46
46
|
```typescript
|
|
47
47
|
import { Mq } from "@effect-aws/client-mq";
|
|
48
48
|
|
|
49
|
-
const program = Mq.listBrokers(args);
|
|
49
|
+
const program = Mq.use((svc) => svc.listBrokers(args));
|
|
50
50
|
|
|
51
51
|
const result = await pipe(
|
|
52
52
|
program,
|
|
@@ -2,8 +2,10 @@
|
|
|
2
2
|
* @since 1.0.0
|
|
3
3
|
*/
|
|
4
4
|
import { MqClient } from "@aws-sdk/client-mq";
|
|
5
|
-
import
|
|
6
|
-
|
|
5
|
+
import * as Effect from "effect/Effect";
|
|
6
|
+
import * as Layer from "effect/Layer";
|
|
7
|
+
import * as ServiceMap from "effect/ServiceMap";
|
|
8
|
+
declare const MqClientInstance_base: ServiceMap.ServiceClass<MqClientInstance, "@effect-aws/client-mq/MqClientInstance", MqClient>;
|
|
7
9
|
/**
|
|
8
10
|
* @since 1.0.0
|
|
9
11
|
* @category tags
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MqClientInstance.d.ts","sourceRoot":"","sources":["../../src/MqClientInstance.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AAC9C,OAAO,
|
|
1
|
+
{"version":3,"file":"MqClientInstance.d.ts","sourceRoot":"","sources":["../../src/MqClientInstance.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AAC9C,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,KAAK,KAAK,MAAM,cAAc,CAAC;AACtC,OAAO,KAAK,UAAU,MAAM,mBAAmB,CAAC;;AAGhD;;;GAGG;AACH,qBAAa,gBAAiB,SAAQ,qBAErC;CAAG;AAEJ;;;GAGG;AACH,eAAO,MAAM,IAAI,8DAOhB,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,KAAK,6CAAuC,CAAC"}
|
package/dist/dts/MqService.d.ts
CHANGED
|
@@ -3,8 +3,10 @@
|
|
|
3
3
|
*/
|
|
4
4
|
import { type CreateBrokerCommandInput, type CreateBrokerCommandOutput, type CreateConfigurationCommandInput, type CreateConfigurationCommandOutput, type CreateTagsCommandInput, type CreateTagsCommandOutput, type CreateUserCommandInput, type CreateUserCommandOutput, type DeleteBrokerCommandInput, type DeleteBrokerCommandOutput, type DeleteConfigurationCommandInput, type DeleteConfigurationCommandOutput, type DeleteTagsCommandInput, type DeleteTagsCommandOutput, type DeleteUserCommandInput, type DeleteUserCommandOutput, type DescribeBrokerCommandInput, type DescribeBrokerCommandOutput, type DescribeBrokerEngineTypesCommandInput, type DescribeBrokerEngineTypesCommandOutput, type DescribeBrokerInstanceOptionsCommandInput, type DescribeBrokerInstanceOptionsCommandOutput, type DescribeConfigurationCommandInput, type DescribeConfigurationCommandOutput, type DescribeConfigurationRevisionCommandInput, type DescribeConfigurationRevisionCommandOutput, type DescribeUserCommandInput, type DescribeUserCommandOutput, type ListBrokersCommandInput, type ListBrokersCommandOutput, type ListConfigurationRevisionsCommandInput, type ListConfigurationRevisionsCommandOutput, type ListConfigurationsCommandInput, type ListConfigurationsCommandOutput, type ListTagsCommandInput, type ListTagsCommandOutput, type ListUsersCommandInput, type ListUsersCommandOutput, type MqClient, type MqClientConfig, type PromoteCommandInput, type PromoteCommandOutput, type RebootBrokerCommandInput, type RebootBrokerCommandOutput, type UpdateBrokerCommandInput, type UpdateBrokerCommandOutput, type UpdateConfigurationCommandInput, type UpdateConfigurationCommandOutput, type UpdateUserCommandInput, type UpdateUserCommandOutput } from "@aws-sdk/client-mq";
|
|
5
5
|
import type { HttpHandlerOptions, ServiceLogger } from "@effect-aws/commons";
|
|
6
|
-
import type
|
|
7
|
-
import
|
|
6
|
+
import type * as Cause from "effect/Cause";
|
|
7
|
+
import * as Effect from "effect/Effect";
|
|
8
|
+
import * as Layer from "effect/Layer";
|
|
9
|
+
import * as ServiceMap from "effect/ServiceMap";
|
|
8
10
|
import type { BadRequestError, ConflictError, ForbiddenError, InternalServerError, NotFoundError, SdkError, UnauthorizedError } from "./Errors.js";
|
|
9
11
|
import * as Instance from "./MqClientInstance.js";
|
|
10
12
|
interface MqService$ {
|
|
@@ -12,108 +14,106 @@ interface MqService$ {
|
|
|
12
14
|
/**
|
|
13
15
|
* @see {@link CreateBrokerCommand}
|
|
14
16
|
*/
|
|
15
|
-
createBroker(args: CreateBrokerCommandInput, options?: HttpHandlerOptions): Effect.Effect<CreateBrokerCommandOutput, Cause.
|
|
17
|
+
createBroker(args: CreateBrokerCommandInput, options?: HttpHandlerOptions): Effect.Effect<CreateBrokerCommandOutput, Cause.TimeoutError | SdkError | BadRequestError | ConflictError | ForbiddenError | InternalServerError | UnauthorizedError>;
|
|
16
18
|
/**
|
|
17
19
|
* @see {@link CreateConfigurationCommand}
|
|
18
20
|
*/
|
|
19
|
-
createConfiguration(args: CreateConfigurationCommandInput, options?: HttpHandlerOptions): Effect.Effect<CreateConfigurationCommandOutput, Cause.
|
|
21
|
+
createConfiguration(args: CreateConfigurationCommandInput, options?: HttpHandlerOptions): Effect.Effect<CreateConfigurationCommandOutput, Cause.TimeoutError | SdkError | BadRequestError | ConflictError | ForbiddenError | InternalServerError>;
|
|
20
22
|
/**
|
|
21
23
|
* @see {@link CreateTagsCommand}
|
|
22
24
|
*/
|
|
23
|
-
createTags(args: CreateTagsCommandInput, options?: HttpHandlerOptions): Effect.Effect<CreateTagsCommandOutput, Cause.
|
|
25
|
+
createTags(args: CreateTagsCommandInput, options?: HttpHandlerOptions): Effect.Effect<CreateTagsCommandOutput, Cause.TimeoutError | SdkError | BadRequestError | ForbiddenError | InternalServerError | NotFoundError>;
|
|
24
26
|
/**
|
|
25
27
|
* @see {@link CreateUserCommand}
|
|
26
28
|
*/
|
|
27
|
-
createUser(args: CreateUserCommandInput, options?: HttpHandlerOptions): Effect.Effect<CreateUserCommandOutput, Cause.
|
|
29
|
+
createUser(args: CreateUserCommandInput, options?: HttpHandlerOptions): Effect.Effect<CreateUserCommandOutput, Cause.TimeoutError | SdkError | BadRequestError | ConflictError | ForbiddenError | InternalServerError | NotFoundError>;
|
|
28
30
|
/**
|
|
29
31
|
* @see {@link DeleteBrokerCommand}
|
|
30
32
|
*/
|
|
31
|
-
deleteBroker(args: DeleteBrokerCommandInput, options?: HttpHandlerOptions): Effect.Effect<DeleteBrokerCommandOutput, Cause.
|
|
33
|
+
deleteBroker(args: DeleteBrokerCommandInput, options?: HttpHandlerOptions): Effect.Effect<DeleteBrokerCommandOutput, Cause.TimeoutError | SdkError | BadRequestError | ForbiddenError | InternalServerError | NotFoundError>;
|
|
32
34
|
/**
|
|
33
35
|
* @see {@link DeleteConfigurationCommand}
|
|
34
36
|
*/
|
|
35
|
-
deleteConfiguration(args: DeleteConfigurationCommandInput, options?: HttpHandlerOptions): Effect.Effect<DeleteConfigurationCommandOutput, Cause.
|
|
37
|
+
deleteConfiguration(args: DeleteConfigurationCommandInput, options?: HttpHandlerOptions): Effect.Effect<DeleteConfigurationCommandOutput, Cause.TimeoutError | SdkError | BadRequestError | ConflictError | ForbiddenError | InternalServerError | NotFoundError>;
|
|
36
38
|
/**
|
|
37
39
|
* @see {@link DeleteTagsCommand}
|
|
38
40
|
*/
|
|
39
|
-
deleteTags(args: DeleteTagsCommandInput, options?: HttpHandlerOptions): Effect.Effect<DeleteTagsCommandOutput, Cause.
|
|
41
|
+
deleteTags(args: DeleteTagsCommandInput, options?: HttpHandlerOptions): Effect.Effect<DeleteTagsCommandOutput, Cause.TimeoutError | SdkError | BadRequestError | ForbiddenError | InternalServerError | NotFoundError>;
|
|
40
42
|
/**
|
|
41
43
|
* @see {@link DeleteUserCommand}
|
|
42
44
|
*/
|
|
43
|
-
deleteUser(args: DeleteUserCommandInput, options?: HttpHandlerOptions): Effect.Effect<DeleteUserCommandOutput, Cause.
|
|
45
|
+
deleteUser(args: DeleteUserCommandInput, options?: HttpHandlerOptions): Effect.Effect<DeleteUserCommandOutput, Cause.TimeoutError | SdkError | BadRequestError | ForbiddenError | InternalServerError | NotFoundError>;
|
|
44
46
|
/**
|
|
45
47
|
* @see {@link DescribeBrokerCommand}
|
|
46
48
|
*/
|
|
47
|
-
describeBroker(args: DescribeBrokerCommandInput, options?: HttpHandlerOptions): Effect.Effect<DescribeBrokerCommandOutput, Cause.
|
|
49
|
+
describeBroker(args: DescribeBrokerCommandInput, options?: HttpHandlerOptions): Effect.Effect<DescribeBrokerCommandOutput, Cause.TimeoutError | SdkError | BadRequestError | ForbiddenError | InternalServerError | NotFoundError>;
|
|
48
50
|
/**
|
|
49
51
|
* @see {@link DescribeBrokerEngineTypesCommand}
|
|
50
52
|
*/
|
|
51
|
-
describeBrokerEngineTypes(args: DescribeBrokerEngineTypesCommandInput, options?: HttpHandlerOptions): Effect.Effect<DescribeBrokerEngineTypesCommandOutput, Cause.
|
|
53
|
+
describeBrokerEngineTypes(args: DescribeBrokerEngineTypesCommandInput, options?: HttpHandlerOptions): Effect.Effect<DescribeBrokerEngineTypesCommandOutput, Cause.TimeoutError | SdkError | BadRequestError | ForbiddenError | InternalServerError>;
|
|
52
54
|
/**
|
|
53
55
|
* @see {@link DescribeBrokerInstanceOptionsCommand}
|
|
54
56
|
*/
|
|
55
|
-
describeBrokerInstanceOptions(args: DescribeBrokerInstanceOptionsCommandInput, options?: HttpHandlerOptions): Effect.Effect<DescribeBrokerInstanceOptionsCommandOutput, Cause.
|
|
57
|
+
describeBrokerInstanceOptions(args: DescribeBrokerInstanceOptionsCommandInput, options?: HttpHandlerOptions): Effect.Effect<DescribeBrokerInstanceOptionsCommandOutput, Cause.TimeoutError | SdkError | BadRequestError | ForbiddenError | InternalServerError>;
|
|
56
58
|
/**
|
|
57
59
|
* @see {@link DescribeConfigurationCommand}
|
|
58
60
|
*/
|
|
59
|
-
describeConfiguration(args: DescribeConfigurationCommandInput, options?: HttpHandlerOptions): Effect.Effect<DescribeConfigurationCommandOutput, Cause.
|
|
61
|
+
describeConfiguration(args: DescribeConfigurationCommandInput, options?: HttpHandlerOptions): Effect.Effect<DescribeConfigurationCommandOutput, Cause.TimeoutError | SdkError | BadRequestError | ForbiddenError | InternalServerError | NotFoundError>;
|
|
60
62
|
/**
|
|
61
63
|
* @see {@link DescribeConfigurationRevisionCommand}
|
|
62
64
|
*/
|
|
63
|
-
describeConfigurationRevision(args: DescribeConfigurationRevisionCommandInput, options?: HttpHandlerOptions): Effect.Effect<DescribeConfigurationRevisionCommandOutput, Cause.
|
|
65
|
+
describeConfigurationRevision(args: DescribeConfigurationRevisionCommandInput, options?: HttpHandlerOptions): Effect.Effect<DescribeConfigurationRevisionCommandOutput, Cause.TimeoutError | SdkError | BadRequestError | ForbiddenError | InternalServerError | NotFoundError>;
|
|
64
66
|
/**
|
|
65
67
|
* @see {@link DescribeUserCommand}
|
|
66
68
|
*/
|
|
67
|
-
describeUser(args: DescribeUserCommandInput, options?: HttpHandlerOptions): Effect.Effect<DescribeUserCommandOutput, Cause.
|
|
69
|
+
describeUser(args: DescribeUserCommandInput, options?: HttpHandlerOptions): Effect.Effect<DescribeUserCommandOutput, Cause.TimeoutError | SdkError | BadRequestError | ForbiddenError | InternalServerError | NotFoundError>;
|
|
68
70
|
/**
|
|
69
71
|
* @see {@link ListBrokersCommand}
|
|
70
72
|
*/
|
|
71
|
-
listBrokers(args: ListBrokersCommandInput, options?: HttpHandlerOptions): Effect.Effect<ListBrokersCommandOutput, Cause.
|
|
73
|
+
listBrokers(args: ListBrokersCommandInput, options?: HttpHandlerOptions): Effect.Effect<ListBrokersCommandOutput, Cause.TimeoutError | SdkError | BadRequestError | ForbiddenError | InternalServerError>;
|
|
72
74
|
/**
|
|
73
75
|
* @see {@link ListConfigurationRevisionsCommand}
|
|
74
76
|
*/
|
|
75
|
-
listConfigurationRevisions(args: ListConfigurationRevisionsCommandInput, options?: HttpHandlerOptions): Effect.Effect<ListConfigurationRevisionsCommandOutput, Cause.
|
|
77
|
+
listConfigurationRevisions(args: ListConfigurationRevisionsCommandInput, options?: HttpHandlerOptions): Effect.Effect<ListConfigurationRevisionsCommandOutput, Cause.TimeoutError | SdkError | BadRequestError | ForbiddenError | InternalServerError | NotFoundError>;
|
|
76
78
|
/**
|
|
77
79
|
* @see {@link ListConfigurationsCommand}
|
|
78
80
|
*/
|
|
79
|
-
listConfigurations(args: ListConfigurationsCommandInput, options?: HttpHandlerOptions): Effect.Effect<ListConfigurationsCommandOutput, Cause.
|
|
81
|
+
listConfigurations(args: ListConfigurationsCommandInput, options?: HttpHandlerOptions): Effect.Effect<ListConfigurationsCommandOutput, Cause.TimeoutError | SdkError | BadRequestError | ForbiddenError | InternalServerError>;
|
|
80
82
|
/**
|
|
81
83
|
* @see {@link ListTagsCommand}
|
|
82
84
|
*/
|
|
83
|
-
listTags(args: ListTagsCommandInput, options?: HttpHandlerOptions): Effect.Effect<ListTagsCommandOutput, Cause.
|
|
85
|
+
listTags(args: ListTagsCommandInput, options?: HttpHandlerOptions): Effect.Effect<ListTagsCommandOutput, Cause.TimeoutError | SdkError | BadRequestError | ForbiddenError | InternalServerError | NotFoundError>;
|
|
84
86
|
/**
|
|
85
87
|
* @see {@link ListUsersCommand}
|
|
86
88
|
*/
|
|
87
|
-
listUsers(args: ListUsersCommandInput, options?: HttpHandlerOptions): Effect.Effect<ListUsersCommandOutput, Cause.
|
|
89
|
+
listUsers(args: ListUsersCommandInput, options?: HttpHandlerOptions): Effect.Effect<ListUsersCommandOutput, Cause.TimeoutError | SdkError | BadRequestError | ForbiddenError | InternalServerError | NotFoundError>;
|
|
88
90
|
/**
|
|
89
91
|
* @see {@link PromoteCommand}
|
|
90
92
|
*/
|
|
91
|
-
promote(args: PromoteCommandInput, options?: HttpHandlerOptions): Effect.Effect<PromoteCommandOutput, Cause.
|
|
93
|
+
promote(args: PromoteCommandInput, options?: HttpHandlerOptions): Effect.Effect<PromoteCommandOutput, Cause.TimeoutError | SdkError | BadRequestError | ForbiddenError | InternalServerError | NotFoundError>;
|
|
92
94
|
/**
|
|
93
95
|
* @see {@link RebootBrokerCommand}
|
|
94
96
|
*/
|
|
95
|
-
rebootBroker(args: RebootBrokerCommandInput, options?: HttpHandlerOptions): Effect.Effect<RebootBrokerCommandOutput, Cause.
|
|
97
|
+
rebootBroker(args: RebootBrokerCommandInput, options?: HttpHandlerOptions): Effect.Effect<RebootBrokerCommandOutput, Cause.TimeoutError | SdkError | BadRequestError | ForbiddenError | InternalServerError | NotFoundError>;
|
|
96
98
|
/**
|
|
97
99
|
* @see {@link UpdateBrokerCommand}
|
|
98
100
|
*/
|
|
99
|
-
updateBroker(args: UpdateBrokerCommandInput, options?: HttpHandlerOptions): Effect.Effect<UpdateBrokerCommandOutput, Cause.
|
|
101
|
+
updateBroker(args: UpdateBrokerCommandInput, options?: HttpHandlerOptions): Effect.Effect<UpdateBrokerCommandOutput, Cause.TimeoutError | SdkError | BadRequestError | ConflictError | ForbiddenError | InternalServerError | NotFoundError>;
|
|
100
102
|
/**
|
|
101
103
|
* @see {@link UpdateConfigurationCommand}
|
|
102
104
|
*/
|
|
103
|
-
updateConfiguration(args: UpdateConfigurationCommandInput, options?: HttpHandlerOptions): Effect.Effect<UpdateConfigurationCommandOutput, Cause.
|
|
105
|
+
updateConfiguration(args: UpdateConfigurationCommandInput, options?: HttpHandlerOptions): Effect.Effect<UpdateConfigurationCommandOutput, Cause.TimeoutError | SdkError | BadRequestError | ConflictError | ForbiddenError | InternalServerError | NotFoundError>;
|
|
104
106
|
/**
|
|
105
107
|
* @see {@link UpdateUserCommand}
|
|
106
108
|
*/
|
|
107
|
-
updateUser(args: UpdateUserCommandInput, options?: HttpHandlerOptions): Effect.Effect<UpdateUserCommandOutput, Cause.
|
|
109
|
+
updateUser(args: UpdateUserCommandInput, options?: HttpHandlerOptions): Effect.Effect<UpdateUserCommandOutput, Cause.TimeoutError | SdkError | BadRequestError | ConflictError | ForbiddenError | InternalServerError | NotFoundError>;
|
|
108
110
|
}
|
|
109
111
|
/**
|
|
110
112
|
* @since 1.0.0
|
|
111
113
|
* @category constructors
|
|
112
114
|
*/
|
|
113
115
|
export declare const makeMqService: Effect.Effect<MqService$, never, Instance.MqClientInstance>;
|
|
114
|
-
declare const MqService_base:
|
|
115
|
-
use: <X>(body: (_: MqService$) => X) => [X] extends [Effect.Effect<infer A, infer E, infer R>] ? Effect.Effect<A, E, MqService | R> : [X] extends [PromiseLike<infer A_1>] ? Effect.Effect<A_1, Cause.UnknownException, MqService> : Effect.Effect<X, never, MqService>;
|
|
116
|
-
};
|
|
116
|
+
declare const MqService_base: ServiceMap.ServiceClass<MqService, "@effect-aws/client-mq/MqService", MqService$>;
|
|
117
117
|
/**
|
|
118
118
|
* @since 1.0.0
|
|
119
119
|
* @category models
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MqService.d.ts","sourceRoot":"","sources":["../../src/MqService.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAEL,KAAK,wBAAwB,EAC7B,KAAK,yBAAyB,EAE9B,KAAK,+BAA+B,EACpC,KAAK,gCAAgC,EAErC,KAAK,sBAAsB,EAC3B,KAAK,uBAAuB,EAE5B,KAAK,sBAAsB,EAC3B,KAAK,uBAAuB,EAE5B,KAAK,wBAAwB,EAC7B,KAAK,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@since 1.0.0
|
|
3
3
|
*/
|
|
4
4
|
import type { MqClientConfig } from "@aws-sdk/client-mq";
|
|
5
|
-
import
|
|
5
|
+
import * as Effect from "effect/Effect";
|
|
6
|
+
import * as Layer from "effect/Layer";
|
|
6
7
|
import type { MqService } from "./MqService.js";
|
|
7
8
|
/**
|
|
8
9
|
* @since 1.0.0
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MqServiceConfig.d.ts","sourceRoot":"","sources":["../../src/MqServiceConfig.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAEzD,OAAO,
|
|
1
|
+
{"version":3,"file":"MqServiceConfig.d.ts","sourceRoot":"","sources":["../../src/MqServiceConfig.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAEzD,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAExC,OAAO,KAAK,KAAK,MAAM,cAAc,CAAC;AAEtC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAWhD;;;GAGG;AACH,eAAO,MAAM,mBAAmB,EAAE;IAChC,CAAC,MAAM,EAAE,SAAS,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;IAChG,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,MAAM,EAAE,MAAM,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,EAAE,MAAM,EAAE,SAAS,CAAC,MAAM,GAAG,MAAM,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC;CAK7F,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,kBAAkB,WAAY,UAAU,MAAM,qCAAkD,CAAC;AAE9G;;;GAGG;AACH,eAAO,MAAM,gBAAgB,EAAE,MAAM,CAAC,MAAM,CAAC,cAAc,CAQzD,CAAC"}
|
|
@@ -2,13 +2,15 @@
|
|
|
2
2
|
* @since 1.0.0
|
|
3
3
|
*/
|
|
4
4
|
import { MqClient } from "@aws-sdk/client-mq";
|
|
5
|
-
import
|
|
5
|
+
import * as Effect from "effect/Effect";
|
|
6
|
+
import * as Layer from "effect/Layer";
|
|
7
|
+
import * as ServiceMap from "effect/ServiceMap";
|
|
6
8
|
import * as MqServiceConfig from "./MqServiceConfig.js";
|
|
7
9
|
/**
|
|
8
10
|
* @since 1.0.0
|
|
9
11
|
* @category tags
|
|
10
12
|
*/
|
|
11
|
-
export class MqClientInstance extends
|
|
13
|
+
export class MqClientInstance extends ServiceMap.Service()("@effect-aws/client-mq/MqClientInstance") {
|
|
12
14
|
}
|
|
13
15
|
/**
|
|
14
16
|
* @since 1.0.0
|
|
@@ -19,5 +21,5 @@ export const make = Effect.flatMap(MqServiceConfig.toMqClientConfig, (config) =>
|
|
|
19
21
|
* @since 1.0.0
|
|
20
22
|
* @category layers
|
|
21
23
|
*/
|
|
22
|
-
export const layer = Layer.
|
|
24
|
+
export const layer = Layer.effect(MqClientInstance, make);
|
|
23
25
|
//# sourceMappingURL=MqClientInstance.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MqClientInstance.js","sourceRoot":"","sources":["../../src/MqClientInstance.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AAC9C,OAAO,
|
|
1
|
+
{"version":3,"file":"MqClientInstance.js","sourceRoot":"","sources":["../../src/MqClientInstance.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AAC9C,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,KAAK,KAAK,MAAM,cAAc,CAAC;AACtC,OAAO,KAAK,UAAU,MAAM,mBAAmB,CAAC;AAChD,OAAO,KAAK,eAAe,MAAM,sBAAsB,CAAC;AAExD;;;GAGG;AACH,MAAM,OAAO,gBAAiB,SAAQ,UAAU,CAAC,OAAO,EAA8B,CACpF,wCAAwC,CACzC;CAAG;AAEJ;;;GAGG;AACH,MAAM,CAAC,MAAM,IAAI,GAAG,MAAM,CAAC,OAAO,CAChC,eAAe,CAAC,gBAAgB,EAChC,CAAC,MAAM,EAAE,EAAE,CACT,MAAM,CAAC,cAAc,CACnB,MAAM,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,IAAI,QAAQ,CAAC,MAAM,CAAC,CAAC,EACvC,CAAC,MAAM,EAAE,EAAE,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,MAAM,CAAC,OAAO,EAAE,CAAC,CAChD,CACJ,CAAC;AAEF;;;GAGG;AACH,MAAM,CAAC,MAAM,KAAK,GAAG,KAAK,CAAC,MAAM,CAAC,gBAAgB,EAAE,IAAI,CAAC,CAAC"}
|
package/dist/esm/MqService.js
CHANGED
|
@@ -3,7 +3,9 @@
|
|
|
3
3
|
*/
|
|
4
4
|
import { CreateBrokerCommand, CreateConfigurationCommand, CreateTagsCommand, CreateUserCommand, DeleteBrokerCommand, DeleteConfigurationCommand, DeleteTagsCommand, DeleteUserCommand, DescribeBrokerCommand, DescribeBrokerEngineTypesCommand, DescribeBrokerInstanceOptionsCommand, DescribeConfigurationCommand, DescribeConfigurationRevisionCommand, DescribeUserCommand, ListBrokersCommand, ListConfigurationRevisionsCommand, ListConfigurationsCommand, ListTagsCommand, ListUsersCommand, PromoteCommand, RebootBrokerCommand, UpdateBrokerCommand, UpdateConfigurationCommand, UpdateUserCommand, } from "@aws-sdk/client-mq";
|
|
5
5
|
import { Service } from "@effect-aws/commons";
|
|
6
|
-
import
|
|
6
|
+
import * as Effect from "effect/Effect";
|
|
7
|
+
import * as Layer from "effect/Layer";
|
|
8
|
+
import * as ServiceMap from "effect/ServiceMap";
|
|
7
9
|
import { AllServiceErrors } from "./Errors.js";
|
|
8
10
|
import * as Instance from "./MqClientInstance.js";
|
|
9
11
|
import * as MqServiceConfig from "./MqServiceConfig.js";
|
|
@@ -48,7 +50,7 @@ export const makeMqService = Effect.gen(function* () {
|
|
|
48
50
|
* @since 1.0.0
|
|
49
51
|
* @category models
|
|
50
52
|
*/
|
|
51
|
-
export class MqService extends
|
|
53
|
+
export class MqService extends ServiceMap.Service()("@effect-aws/client-mq/MqService") {
|
|
52
54
|
static defaultLayer = Layer.effect(this, makeMqService).pipe(Layer.provide(Instance.layer));
|
|
53
55
|
static layer = (config) => Layer.effect(this, makeMqService).pipe(Layer.provide(Instance.layer), Layer.provide(MqServiceConfig.setMqServiceConfig(config)));
|
|
54
56
|
static baseLayer = (evaluate) => Layer.effect(this, makeMqService).pipe(Layer.provide(Layer.effect(Instance.MqClientInstance, Effect.map(MqServiceConfig.toMqClientConfig, evaluate))));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MqService.js","sourceRoot":"","sources":["../../src/MqService.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EACL,mBAAmB,EAGnB,0BAA0B,EAG1B,iBAAiB,EAGjB,iBAAiB,EAGjB,mBAAmB,EAGnB,0BAA0B,EAG1B,iBAAiB,EAGjB,iBAAiB,EAGjB,qBAAqB,EAGrB,gCAAgC,EAGhC,oCAAoC,EAGpC,4BAA4B,EAG5B,oCAAoC,EAGpC,mBAAmB,EAGnB,kBAAkB,EAGlB,iCAAiC,EAGjC,yBAAyB,EAGzB,eAAe,EAGf,gBAAgB,EAKhB,cAAc,EAGd,mBAAmB,EAGnB,mBAAmB,EAGnB,0BAA0B,EAG1B,iBAAiB,GAGlB,MAAM,oBAAoB,CAAC;AAE5B,OAAO,EAAE,OAAO,EAAE,MAAM,q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
+
import * as Effect from "effect/Effect";
|
|
3
3
|
import { dual } from "effect/Function";
|
|
4
|
-
import
|
|
4
|
+
import * as Layer from "effect/Layer";
|
|
5
|
+
import * as ServiceMap from "effect/ServiceMap";
|
|
5
6
|
/**
|
|
6
7
|
* @since 1.0.0
|
|
7
8
|
* @category mq service config
|
|
8
9
|
*/
|
|
9
|
-
const currentMqServiceConfig =
|
|
10
|
+
const currentMqServiceConfig = ServiceMap.Reference("@effect-aws/client-mq/currentMqServiceConfig", { defaultValue: () => ({}) });
|
|
10
11
|
/**
|
|
11
12
|
* @since 1.0.0
|
|
12
13
|
* @category mq service config
|
|
13
14
|
*/
|
|
14
|
-
export const withMqServiceConfig = dual(2, (effect, config) => Effect.
|
|
15
|
+
export const withMqServiceConfig = dual(2, (effect, config) => Effect.provideService(effect, currentMqServiceConfig, config));
|
|
15
16
|
/**
|
|
16
17
|
* @since 1.0.0
|
|
17
18
|
* @category mq service config
|
|
18
19
|
*/
|
|
19
|
-
export const setMqServiceConfig = (config) => Layer.
|
|
20
|
+
export const setMqServiceConfig = (config) => Layer.succeed(currentMqServiceConfig, config);
|
|
20
21
|
/**
|
|
21
22
|
* @since 1.0.0
|
|
22
23
|
* @category adapters
|
|
23
24
|
*/
|
|
24
25
|
export const toMqClientConfig = Effect.gen(function* () {
|
|
25
|
-
const { logger: serviceLogger, ...config } = yield*
|
|
26
|
+
const { logger: serviceLogger, ...config } = yield* currentMqServiceConfig;
|
|
26
27
|
const logger = serviceLogger === true
|
|
27
28
|
? yield* ServiceLogger.toClientLogger(ServiceLogger.defaultServiceLogger)
|
|
28
29
|
: (serviceLogger ? yield* ServiceLogger.toClientLogger(ServiceLogger.make(serviceLogger)) : undefined);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MqServiceConfig.js","sourceRoot":"","sources":["../../src/MqServiceConfig.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AACpD,OAAO,
|
|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AAC,aAAa,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC;IAEzG,OAAO,EAAE,MAAM,EAAE,GAAG,MAAM,EAAE,CAAC;AAC/B,CAAC,CAAC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@effect-aws/client-mq",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "2.0.0-beta.1",
|
|
4
4
|
"description": "Effectful AWS MQ client",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -16,40 +16,34 @@
|
|
|
16
16
|
"homepage": "https://floydspace.github.io/effect-aws/docs/client-mq",
|
|
17
17
|
"dependencies": {
|
|
18
18
|
"@aws-sdk/client-mq": "^3",
|
|
19
|
-
"@effect-aws/commons": "^0.
|
|
19
|
+
"@effect-aws/commons": "^1.0.0-beta.1"
|
|
20
20
|
},
|
|
21
21
|
"peerDependencies": {
|
|
22
|
-
"effect": ">=
|
|
22
|
+
"effect": ">=4.0.0 <5.0.0"
|
|
23
23
|
},
|
|
24
|
-
"main": "./dist/cjs/index.js",
|
|
25
24
|
"module": "./dist/esm/index.js",
|
|
26
25
|
"types": "./dist/dts/index.d.ts",
|
|
27
26
|
"exports": {
|
|
28
27
|
"./package.json": "./package.json",
|
|
29
28
|
".": {
|
|
30
29
|
"types": "./dist/dts/index.d.ts",
|
|
31
|
-
"import": "./dist/esm/index.js"
|
|
32
|
-
"default": "./dist/cjs/index.js"
|
|
30
|
+
"import": "./dist/esm/index.js"
|
|
33
31
|
},
|
|
34
32
|
"./Errors": {
|
|
35
33
|
"types": "./dist/dts/Errors.d.ts",
|
|
36
|
-
"import": "./dist/esm/Errors.js"
|
|
37
|
-
"default": "./dist/cjs/Errors.js"
|
|
34
|
+
"import": "./dist/esm/Errors.js"
|
|
38
35
|
},
|
|
39
36
|
"./MqClientInstance": {
|
|
40
37
|
"types": "./dist/dts/MqClientInstance.d.ts",
|
|
41
|
-
"import": "./dist/esm/MqClientInstance.js"
|
|
42
|
-
"default": "./dist/cjs/MqClientInstance.js"
|
|
38
|
+
"import": "./dist/esm/MqClientInstance.js"
|
|
43
39
|
},
|
|
44
40
|
"./MqService": {
|
|
45
41
|
"types": "./dist/dts/MqService.d.ts",
|
|
46
|
-
"import": "./dist/esm/MqService.js"
|
|
47
|
-
"default": "./dist/cjs/MqService.js"
|
|
42
|
+
"import": "./dist/esm/MqService.js"
|
|
48
43
|
},
|
|
49
44
|
"./MqServiceConfig": {
|
|
50
45
|
"types": "./dist/dts/MqServiceConfig.d.ts",
|
|
51
|
-
"import": "./dist/esm/MqServiceConfig.js"
|
|
52
|
-
"default": "./dist/cjs/MqServiceConfig.js"
|
|
46
|
+
"import": "./dist/esm/MqServiceConfig.js"
|
|
53
47
|
}
|
|
54
48
|
},
|
|
55
49
|
"typesVersions": {
|
package/src/MqClientInstance.ts
CHANGED
|
@@ -2,16 +2,18 @@
|
|
|
2
2
|
* @since 1.0.0
|
|
3
3
|
*/
|
|
4
4
|
import { MqClient } from "@aws-sdk/client-mq";
|
|
5
|
-
import
|
|
5
|
+
import * as Effect from "effect/Effect";
|
|
6
|
+
import * as Layer from "effect/Layer";
|
|
7
|
+
import * as ServiceMap from "effect/ServiceMap";
|
|
6
8
|
import * as MqServiceConfig from "./MqServiceConfig.js";
|
|
7
9
|
|
|
8
10
|
/**
|
|
9
11
|
* @since 1.0.0
|
|
10
12
|
* @category tags
|
|
11
13
|
*/
|
|
12
|
-
export class MqClientInstance extends
|
|
14
|
+
export class MqClientInstance extends ServiceMap.Service<MqClientInstance, MqClient>()(
|
|
13
15
|
"@effect-aws/client-mq/MqClientInstance",
|
|
14
|
-
)
|
|
16
|
+
) {}
|
|
15
17
|
|
|
16
18
|
/**
|
|
17
19
|
* @since 1.0.0
|
|
@@ -30,4 +32,4 @@ export const make = Effect.flatMap(
|
|
|
30
32
|
* @since 1.0.0
|
|
31
33
|
* @category layers
|
|
32
34
|
*/
|
|
33
|
-
export const layer = Layer.
|
|
35
|
+
export const layer = Layer.effect(MqClientInstance, make);
|