@effect-aws/client-mq 1.10.9 → 2.0.0-beta.0
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 +2 -2
- package/dist/dts/MqClientInstance.d.ts.map +1 -1
- package/dist/dts/MqService.d.ts +26 -28
- package/dist/dts/MqService.d.ts.map +1 -1
- package/dist/dts/MqServiceConfig.d.ts.map +1 -1
- package/dist/esm/MqClientInstance.js +3 -3
- package/dist/esm/MqClientInstance.js.map +1 -1
- package/dist/esm/MqService.js +2 -2
- package/dist/esm/MqService.js.map +1 -1
- package/dist/esm/MqServiceConfig.js +5 -6
- package/dist/esm/MqServiceConfig.js.map +1 -1
- package/package.json +8 -14
- package/src/MqClientInstance.ts +4 -4
- package/src/MqService.ts +27 -27
- package/src/MqServiceConfig.ts +6 -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,8 @@
|
|
|
2
2
|
* @since 1.0.0
|
|
3
3
|
*/
|
|
4
4
|
import { MqClient } from "@aws-sdk/client-mq";
|
|
5
|
-
import {
|
|
6
|
-
declare const MqClientInstance_base:
|
|
5
|
+
import { Effect, Layer, ServiceMap } from "effect";
|
|
6
|
+
declare const MqClientInstance_base: ServiceMap.ServiceClass<MqClientInstance, "@effect-aws/client-mq/MqClientInstance", MqClient>;
|
|
7
7
|
/**
|
|
8
8
|
* @since 1.0.0
|
|
9
9
|
* @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,EAAE,
|
|
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,EAAE,MAAM,EAAE,KAAK,EAAE,UAAU,EAAE,MAAM,QAAQ,CAAC;;AAGnD;;;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
|
@@ -4,7 +4,7 @@
|
|
|
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
6
|
import type { Cause } from "effect";
|
|
7
|
-
import { Effect, Layer } from "effect";
|
|
7
|
+
import { Effect, Layer, ServiceMap } from "effect";
|
|
8
8
|
import type { BadRequestError, ConflictError, ForbiddenError, InternalServerError, NotFoundError, SdkError, UnauthorizedError } from "./Errors.js";
|
|
9
9
|
import * as Instance from "./MqClientInstance.js";
|
|
10
10
|
interface MqService$ {
|
|
@@ -12,108 +12,106 @@ interface MqService$ {
|
|
|
12
12
|
/**
|
|
13
13
|
* @see {@link CreateBrokerCommand}
|
|
14
14
|
*/
|
|
15
|
-
createBroker(args: CreateBrokerCommandInput, options?: HttpHandlerOptions): Effect.Effect<CreateBrokerCommandOutput, Cause.
|
|
15
|
+
createBroker(args: CreateBrokerCommandInput, options?: HttpHandlerOptions): Effect.Effect<CreateBrokerCommandOutput, Cause.TimeoutError | SdkError | BadRequestError | ConflictError | ForbiddenError | InternalServerError | UnauthorizedError>;
|
|
16
16
|
/**
|
|
17
17
|
* @see {@link CreateConfigurationCommand}
|
|
18
18
|
*/
|
|
19
|
-
createConfiguration(args: CreateConfigurationCommandInput, options?: HttpHandlerOptions): Effect.Effect<CreateConfigurationCommandOutput, Cause.
|
|
19
|
+
createConfiguration(args: CreateConfigurationCommandInput, options?: HttpHandlerOptions): Effect.Effect<CreateConfigurationCommandOutput, Cause.TimeoutError | SdkError | BadRequestError | ConflictError | ForbiddenError | InternalServerError>;
|
|
20
20
|
/**
|
|
21
21
|
* @see {@link CreateTagsCommand}
|
|
22
22
|
*/
|
|
23
|
-
createTags(args: CreateTagsCommandInput, options?: HttpHandlerOptions): Effect.Effect<CreateTagsCommandOutput, Cause.
|
|
23
|
+
createTags(args: CreateTagsCommandInput, options?: HttpHandlerOptions): Effect.Effect<CreateTagsCommandOutput, Cause.TimeoutError | SdkError | BadRequestError | ForbiddenError | InternalServerError | NotFoundError>;
|
|
24
24
|
/**
|
|
25
25
|
* @see {@link CreateUserCommand}
|
|
26
26
|
*/
|
|
27
|
-
createUser(args: CreateUserCommandInput, options?: HttpHandlerOptions): Effect.Effect<CreateUserCommandOutput, Cause.
|
|
27
|
+
createUser(args: CreateUserCommandInput, options?: HttpHandlerOptions): Effect.Effect<CreateUserCommandOutput, Cause.TimeoutError | SdkError | BadRequestError | ConflictError | ForbiddenError | InternalServerError | NotFoundError>;
|
|
28
28
|
/**
|
|
29
29
|
* @see {@link DeleteBrokerCommand}
|
|
30
30
|
*/
|
|
31
|
-
deleteBroker(args: DeleteBrokerCommandInput, options?: HttpHandlerOptions): Effect.Effect<DeleteBrokerCommandOutput, Cause.
|
|
31
|
+
deleteBroker(args: DeleteBrokerCommandInput, options?: HttpHandlerOptions): Effect.Effect<DeleteBrokerCommandOutput, Cause.TimeoutError | SdkError | BadRequestError | ForbiddenError | InternalServerError | NotFoundError>;
|
|
32
32
|
/**
|
|
33
33
|
* @see {@link DeleteConfigurationCommand}
|
|
34
34
|
*/
|
|
35
|
-
deleteConfiguration(args: DeleteConfigurationCommandInput, options?: HttpHandlerOptions): Effect.Effect<DeleteConfigurationCommandOutput, Cause.
|
|
35
|
+
deleteConfiguration(args: DeleteConfigurationCommandInput, options?: HttpHandlerOptions): Effect.Effect<DeleteConfigurationCommandOutput, Cause.TimeoutError | SdkError | BadRequestError | ConflictError | ForbiddenError | InternalServerError | NotFoundError>;
|
|
36
36
|
/**
|
|
37
37
|
* @see {@link DeleteTagsCommand}
|
|
38
38
|
*/
|
|
39
|
-
deleteTags(args: DeleteTagsCommandInput, options?: HttpHandlerOptions): Effect.Effect<DeleteTagsCommandOutput, Cause.
|
|
39
|
+
deleteTags(args: DeleteTagsCommandInput, options?: HttpHandlerOptions): Effect.Effect<DeleteTagsCommandOutput, Cause.TimeoutError | SdkError | BadRequestError | ForbiddenError | InternalServerError | NotFoundError>;
|
|
40
40
|
/**
|
|
41
41
|
* @see {@link DeleteUserCommand}
|
|
42
42
|
*/
|
|
43
|
-
deleteUser(args: DeleteUserCommandInput, options?: HttpHandlerOptions): Effect.Effect<DeleteUserCommandOutput, Cause.
|
|
43
|
+
deleteUser(args: DeleteUserCommandInput, options?: HttpHandlerOptions): Effect.Effect<DeleteUserCommandOutput, Cause.TimeoutError | SdkError | BadRequestError | ForbiddenError | InternalServerError | NotFoundError>;
|
|
44
44
|
/**
|
|
45
45
|
* @see {@link DescribeBrokerCommand}
|
|
46
46
|
*/
|
|
47
|
-
describeBroker(args: DescribeBrokerCommandInput, options?: HttpHandlerOptions): Effect.Effect<DescribeBrokerCommandOutput, Cause.
|
|
47
|
+
describeBroker(args: DescribeBrokerCommandInput, options?: HttpHandlerOptions): Effect.Effect<DescribeBrokerCommandOutput, Cause.TimeoutError | SdkError | BadRequestError | ForbiddenError | InternalServerError | NotFoundError>;
|
|
48
48
|
/**
|
|
49
49
|
* @see {@link DescribeBrokerEngineTypesCommand}
|
|
50
50
|
*/
|
|
51
|
-
describeBrokerEngineTypes(args: DescribeBrokerEngineTypesCommandInput, options?: HttpHandlerOptions): Effect.Effect<DescribeBrokerEngineTypesCommandOutput, Cause.
|
|
51
|
+
describeBrokerEngineTypes(args: DescribeBrokerEngineTypesCommandInput, options?: HttpHandlerOptions): Effect.Effect<DescribeBrokerEngineTypesCommandOutput, Cause.TimeoutError | SdkError | BadRequestError | ForbiddenError | InternalServerError>;
|
|
52
52
|
/**
|
|
53
53
|
* @see {@link DescribeBrokerInstanceOptionsCommand}
|
|
54
54
|
*/
|
|
55
|
-
describeBrokerInstanceOptions(args: DescribeBrokerInstanceOptionsCommandInput, options?: HttpHandlerOptions): Effect.Effect<DescribeBrokerInstanceOptionsCommandOutput, Cause.
|
|
55
|
+
describeBrokerInstanceOptions(args: DescribeBrokerInstanceOptionsCommandInput, options?: HttpHandlerOptions): Effect.Effect<DescribeBrokerInstanceOptionsCommandOutput, Cause.TimeoutError | SdkError | BadRequestError | ForbiddenError | InternalServerError>;
|
|
56
56
|
/**
|
|
57
57
|
* @see {@link DescribeConfigurationCommand}
|
|
58
58
|
*/
|
|
59
|
-
describeConfiguration(args: DescribeConfigurationCommandInput, options?: HttpHandlerOptions): Effect.Effect<DescribeConfigurationCommandOutput, Cause.
|
|
59
|
+
describeConfiguration(args: DescribeConfigurationCommandInput, options?: HttpHandlerOptions): Effect.Effect<DescribeConfigurationCommandOutput, Cause.TimeoutError | SdkError | BadRequestError | ForbiddenError | InternalServerError | NotFoundError>;
|
|
60
60
|
/**
|
|
61
61
|
* @see {@link DescribeConfigurationRevisionCommand}
|
|
62
62
|
*/
|
|
63
|
-
describeConfigurationRevision(args: DescribeConfigurationRevisionCommandInput, options?: HttpHandlerOptions): Effect.Effect<DescribeConfigurationRevisionCommandOutput, Cause.
|
|
63
|
+
describeConfigurationRevision(args: DescribeConfigurationRevisionCommandInput, options?: HttpHandlerOptions): Effect.Effect<DescribeConfigurationRevisionCommandOutput, Cause.TimeoutError | SdkError | BadRequestError | ForbiddenError | InternalServerError | NotFoundError>;
|
|
64
64
|
/**
|
|
65
65
|
* @see {@link DescribeUserCommand}
|
|
66
66
|
*/
|
|
67
|
-
describeUser(args: DescribeUserCommandInput, options?: HttpHandlerOptions): Effect.Effect<DescribeUserCommandOutput, Cause.
|
|
67
|
+
describeUser(args: DescribeUserCommandInput, options?: HttpHandlerOptions): Effect.Effect<DescribeUserCommandOutput, Cause.TimeoutError | SdkError | BadRequestError | ForbiddenError | InternalServerError | NotFoundError>;
|
|
68
68
|
/**
|
|
69
69
|
* @see {@link ListBrokersCommand}
|
|
70
70
|
*/
|
|
71
|
-
listBrokers(args: ListBrokersCommandInput, options?: HttpHandlerOptions): Effect.Effect<ListBrokersCommandOutput, Cause.
|
|
71
|
+
listBrokers(args: ListBrokersCommandInput, options?: HttpHandlerOptions): Effect.Effect<ListBrokersCommandOutput, Cause.TimeoutError | SdkError | BadRequestError | ForbiddenError | InternalServerError>;
|
|
72
72
|
/**
|
|
73
73
|
* @see {@link ListConfigurationRevisionsCommand}
|
|
74
74
|
*/
|
|
75
|
-
listConfigurationRevisions(args: ListConfigurationRevisionsCommandInput, options?: HttpHandlerOptions): Effect.Effect<ListConfigurationRevisionsCommandOutput, Cause.
|
|
75
|
+
listConfigurationRevisions(args: ListConfigurationRevisionsCommandInput, options?: HttpHandlerOptions): Effect.Effect<ListConfigurationRevisionsCommandOutput, Cause.TimeoutError | SdkError | BadRequestError | ForbiddenError | InternalServerError | NotFoundError>;
|
|
76
76
|
/**
|
|
77
77
|
* @see {@link ListConfigurationsCommand}
|
|
78
78
|
*/
|
|
79
|
-
listConfigurations(args: ListConfigurationsCommandInput, options?: HttpHandlerOptions): Effect.Effect<ListConfigurationsCommandOutput, Cause.
|
|
79
|
+
listConfigurations(args: ListConfigurationsCommandInput, options?: HttpHandlerOptions): Effect.Effect<ListConfigurationsCommandOutput, Cause.TimeoutError | SdkError | BadRequestError | ForbiddenError | InternalServerError>;
|
|
80
80
|
/**
|
|
81
81
|
* @see {@link ListTagsCommand}
|
|
82
82
|
*/
|
|
83
|
-
listTags(args: ListTagsCommandInput, options?: HttpHandlerOptions): Effect.Effect<ListTagsCommandOutput, Cause.
|
|
83
|
+
listTags(args: ListTagsCommandInput, options?: HttpHandlerOptions): Effect.Effect<ListTagsCommandOutput, Cause.TimeoutError | SdkError | BadRequestError | ForbiddenError | InternalServerError | NotFoundError>;
|
|
84
84
|
/**
|
|
85
85
|
* @see {@link ListUsersCommand}
|
|
86
86
|
*/
|
|
87
|
-
listUsers(args: ListUsersCommandInput, options?: HttpHandlerOptions): Effect.Effect<ListUsersCommandOutput, Cause.
|
|
87
|
+
listUsers(args: ListUsersCommandInput, options?: HttpHandlerOptions): Effect.Effect<ListUsersCommandOutput, Cause.TimeoutError | SdkError | BadRequestError | ForbiddenError | InternalServerError | NotFoundError>;
|
|
88
88
|
/**
|
|
89
89
|
* @see {@link PromoteCommand}
|
|
90
90
|
*/
|
|
91
|
-
promote(args: PromoteCommandInput, options?: HttpHandlerOptions): Effect.Effect<PromoteCommandOutput, Cause.
|
|
91
|
+
promote(args: PromoteCommandInput, options?: HttpHandlerOptions): Effect.Effect<PromoteCommandOutput, Cause.TimeoutError | SdkError | BadRequestError | ForbiddenError | InternalServerError | NotFoundError>;
|
|
92
92
|
/**
|
|
93
93
|
* @see {@link RebootBrokerCommand}
|
|
94
94
|
*/
|
|
95
|
-
rebootBroker(args: RebootBrokerCommandInput, options?: HttpHandlerOptions): Effect.Effect<RebootBrokerCommandOutput, Cause.
|
|
95
|
+
rebootBroker(args: RebootBrokerCommandInput, options?: HttpHandlerOptions): Effect.Effect<RebootBrokerCommandOutput, Cause.TimeoutError | SdkError | BadRequestError | ForbiddenError | InternalServerError | NotFoundError>;
|
|
96
96
|
/**
|
|
97
97
|
* @see {@link UpdateBrokerCommand}
|
|
98
98
|
*/
|
|
99
|
-
updateBroker(args: UpdateBrokerCommandInput, options?: HttpHandlerOptions): Effect.Effect<UpdateBrokerCommandOutput, Cause.
|
|
99
|
+
updateBroker(args: UpdateBrokerCommandInput, options?: HttpHandlerOptions): Effect.Effect<UpdateBrokerCommandOutput, Cause.TimeoutError | SdkError | BadRequestError | ConflictError | ForbiddenError | InternalServerError | NotFoundError>;
|
|
100
100
|
/**
|
|
101
101
|
* @see {@link UpdateConfigurationCommand}
|
|
102
102
|
*/
|
|
103
|
-
updateConfiguration(args: UpdateConfigurationCommandInput, options?: HttpHandlerOptions): Effect.Effect<UpdateConfigurationCommandOutput, Cause.
|
|
103
|
+
updateConfiguration(args: UpdateConfigurationCommandInput, options?: HttpHandlerOptions): Effect.Effect<UpdateConfigurationCommandOutput, Cause.TimeoutError | SdkError | BadRequestError | ConflictError | ForbiddenError | InternalServerError | NotFoundError>;
|
|
104
104
|
/**
|
|
105
105
|
* @see {@link UpdateUserCommand}
|
|
106
106
|
*/
|
|
107
|
-
updateUser(args: UpdateUserCommandInput, options?: HttpHandlerOptions): Effect.Effect<UpdateUserCommandOutput, Cause.
|
|
107
|
+
updateUser(args: UpdateUserCommandInput, options?: HttpHandlerOptions): Effect.Effect<UpdateUserCommandOutput, Cause.TimeoutError | SdkError | BadRequestError | ConflictError | ForbiddenError | InternalServerError | NotFoundError>;
|
|
108
108
|
}
|
|
109
109
|
/**
|
|
110
110
|
* @since 1.0.0
|
|
111
111
|
* @category constructors
|
|
112
112
|
*/
|
|
113
113
|
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
|
-
};
|
|
114
|
+
declare const MqService_base: ServiceMap.ServiceClass<MqService, "@effect-aws/client-mq/MqService", MqService$>;
|
|
117
115
|
/**
|
|
118
116
|
* @since 1.0.0
|
|
119
117
|
* @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,yBAAyB,EAE9B,KAAK,+BAA+B,EACpC,KAAK,gCAAgC,EAErC,KAAK,sBAAsB,EAC3B,KAAK,uBAAuB,EAE5B,KAAK,sBAAsB,EAC3B,KAAK,uBAAuB,EAE5B,KAAK,0BAA0B,EAC/B,KAAK,2BAA2B,EAEhC,KAAK,qCAAqC,EAC1C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E,MAAM,
|
|
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,EAAE,MAAM,EAAE,KAAK,EAAc,MAAM,QAAQ,CAAC;AAEnD,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,13 @@
|
|
|
2
2
|
* @since 1.0.0
|
|
3
3
|
*/
|
|
4
4
|
import { MqClient } from "@aws-sdk/client-mq";
|
|
5
|
-
import {
|
|
5
|
+
import { Effect, Layer, ServiceMap } from "effect";
|
|
6
6
|
import * as MqServiceConfig from "./MqServiceConfig.js";
|
|
7
7
|
/**
|
|
8
8
|
* @since 1.0.0
|
|
9
9
|
* @category tags
|
|
10
10
|
*/
|
|
11
|
-
export class MqClientInstance extends
|
|
11
|
+
export class MqClientInstance extends ServiceMap.Service()("@effect-aws/client-mq/MqClientInstance") {
|
|
12
12
|
}
|
|
13
13
|
/**
|
|
14
14
|
* @since 1.0.0
|
|
@@ -19,5 +19,5 @@ export const make = Effect.flatMap(MqServiceConfig.toMqClientConfig, (config) =>
|
|
|
19
19
|
* @since 1.0.0
|
|
20
20
|
* @category layers
|
|
21
21
|
*/
|
|
22
|
-
export const layer = Layer.
|
|
22
|
+
export const layer = Layer.effect(MqClientInstance, make);
|
|
23
23
|
//# 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,EAAE,
|
|
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,EAAE,MAAM,EAAE,KAAK,EAAE,UAAU,EAAE,MAAM,QAAQ,CAAC;AACnD,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,7 @@
|
|
|
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 { Effect, Layer } from "effect";
|
|
6
|
+
import { Effect, Layer, ServiceMap } from "effect";
|
|
7
7
|
import { AllServiceErrors } from "./Errors.js";
|
|
8
8
|
import * as Instance from "./MqClientInstance.js";
|
|
9
9
|
import * as MqServiceConfig from "./MqServiceConfig.js";
|
|
@@ -48,7 +48,7 @@ export const makeMqService = Effect.gen(function* () {
|
|
|
48
48
|
* @since 1.0.0
|
|
49
49
|
* @category models
|
|
50
50
|
*/
|
|
51
|
-
export class MqService extends
|
|
51
|
+
export class MqService extends ServiceMap.Service()("@effect-aws/client-mq/MqService") {
|
|
52
52
|
static defaultLayer = Layer.effect(this, makeMqService).pipe(Layer.provide(Instance.layer));
|
|
53
53
|
static layer = (config) => Layer.effect(this, makeMqService).pipe(Layer.provide(Instance.layer), Layer.provide(MqServiceConfig.setMqServiceConfig(config)));
|
|
54
54
|
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,qBAAqB,CAAC;AAE9C,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,QAAQ,CAAC;
|
|
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,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IACrG,MAAM,CAAU,KAAK,GAAG,CAAC,MAAwB,EAAE,EAAE,CACnD,KAAK,CAAC,MAAM,CAAC,IAAI,EAAE,aAAa,CAAC,CAAC,IAAI,CACpC,KAAK,CAAC,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAC,EAC7B,KAAK,CAAC,OAAO,CAAC,eAAe,CAAC,kBAAkB,CAAC,MAAM,CAAC,CAAC,CAC1D,CAAC;IACJ,MAAM,CAAU,SAAS,GAAG,CAC1B,QAAqD,EACrD,EAAE,CACF,KAAK,CAAC,MAAM,CAAC,IAAI,EAAE,aAAa,CAAC,CAAC,IAAI,CACpC,KAAK,CAAC,OAAO,CACX,KAAK,CAAC,MAAM,CACV,QAAQ,CAAC,gBAAgB,EACzB,MAAM,CAAC,GAAG,CAAC,eAAe,CAAC,gBAAgB,EAAE,QAAQ,CAAC,CACvD,CACF,CACF,CAAC"}
|
|
@@ -1,28 +1,27 @@
|
|
|
1
1
|
import { ServiceLogger } from "@effect-aws/commons";
|
|
2
|
-
import { Effect,
|
|
2
|
+
import { Effect, Layer, ServiceMap } from "effect";
|
|
3
3
|
import { dual } from "effect/Function";
|
|
4
|
-
import { globalValue } from "effect/GlobalValue";
|
|
5
4
|
/**
|
|
6
5
|
* @since 1.0.0
|
|
7
6
|
* @category mq service config
|
|
8
7
|
*/
|
|
9
|
-
const currentMqServiceConfig =
|
|
8
|
+
const currentMqServiceConfig = ServiceMap.Reference("@effect-aws/client-mq/currentMqServiceConfig", { defaultValue: () => ({}) });
|
|
10
9
|
/**
|
|
11
10
|
* @since 1.0.0
|
|
12
11
|
* @category mq service config
|
|
13
12
|
*/
|
|
14
|
-
export const withMqServiceConfig = dual(2, (effect, config) => Effect.
|
|
13
|
+
export const withMqServiceConfig = dual(2, (effect, config) => Effect.provideService(effect, currentMqServiceConfig, config));
|
|
15
14
|
/**
|
|
16
15
|
* @since 1.0.0
|
|
17
16
|
* @category mq service config
|
|
18
17
|
*/
|
|
19
|
-
export const setMqServiceConfig = (config) => Layer.
|
|
18
|
+
export const setMqServiceConfig = (config) => Layer.succeed(currentMqServiceConfig, config);
|
|
20
19
|
/**
|
|
21
20
|
* @since 1.0.0
|
|
22
21
|
* @category adapters
|
|
23
22
|
*/
|
|
24
23
|
export const toMqClientConfig = Effect.gen(function* () {
|
|
25
|
-
const { logger: serviceLogger, ...config } = yield*
|
|
24
|
+
const { logger: serviceLogger, ...config } = yield* currentMqServiceConfig;
|
|
26
25
|
const logger = serviceLogger === true
|
|
27
26
|
? yield* ServiceLogger.toClientLogger(ServiceLogger.defaultServiceLogger)
|
|
28
27
|
: (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,EAAE,MAAM,EAAE,
|
|
1
|
+
{"version":3,"file":"MqServiceConfig.js","sourceRoot":"","sources":["../../src/MqServiceConfig.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AACpD,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,UAAU,EAAE,MAAM,QAAQ,CAAC;AACnD,OAAO,EAAE,IAAI,EAAE,MAAM,iBAAiB,CAAC;AAGvC;;;GAGG;AACH,MAAM,sBAAsB,GAAG,UAAU,CAAC,SAAS,CACjD,8CAA8C,EAC9C,EAAE,YAAY,EAAE,GAAG,EAAE,CAAC,CAAC,EAAE,CAAC,EAAE,CAC7B,CAAC;AAEF;;;GAGG;AACH,MAAM,CAAC,MAAM,mBAAmB,GAG5B,IAAI,CACN,CAAC,EACD,CAAU,MAA8B,EAAE,MAAwB,EAA0B,EAAE,CAC5F,MAAM,CAAC,cAAc,CAAC,MAAM,EAAE,sBAAsB,EAAE,MAAM,CAAC,CAChE,CAAC;AAEF;;;GAGG;AACH,MAAM,CAAC,MAAM,kBAAkB,GAAG,CAAC,MAAwB,EAAE,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,sBAAsB,EAAE,MAAM,CAAC,CAAC;AAE9G;;;GAGG;AACH,MAAM,CAAC,MAAM,gBAAgB,GAAkC,MAAM,CAAC,GAAG,CAAC,QAAQ,CAAC;IACjF,MAAM,EAAE,MAAM,EAAE,aAAa,EAAE,GAAG,MAAM,EAAE,GAAG,KAAK,CAAC,CAAC,sBAAsB,CAAC;IAE3E,MAAM,MAAM,GAAG,aAAa,KAAK,IAAI;QACnC,CAAC,CAAC,KAAK,CAAC,CAAC,aAAa,CAAC,cAAc,CAAC,aAAa,CAAC,oBAAoB,CAAC;QACzE,CAAC,CAAC,CAAC,aAAa,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,aAAa,CAAC,cAAc,CAAC,aAAa,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"}
|
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.0",
|
|
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.0"
|
|
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,16 @@
|
|
|
2
2
|
* @since 1.0.0
|
|
3
3
|
*/
|
|
4
4
|
import { MqClient } from "@aws-sdk/client-mq";
|
|
5
|
-
import {
|
|
5
|
+
import { Effect, Layer, ServiceMap } from "effect";
|
|
6
6
|
import * as MqServiceConfig from "./MqServiceConfig.js";
|
|
7
7
|
|
|
8
8
|
/**
|
|
9
9
|
* @since 1.0.0
|
|
10
10
|
* @category tags
|
|
11
11
|
*/
|
|
12
|
-
export class MqClientInstance extends
|
|
12
|
+
export class MqClientInstance extends ServiceMap.Service<MqClientInstance, MqClient>()(
|
|
13
13
|
"@effect-aws/client-mq/MqClientInstance",
|
|
14
|
-
)
|
|
14
|
+
) {}
|
|
15
15
|
|
|
16
16
|
/**
|
|
17
17
|
* @since 1.0.0
|
|
@@ -30,4 +30,4 @@ export const make = Effect.flatMap(
|
|
|
30
30
|
* @since 1.0.0
|
|
31
31
|
* @category layers
|
|
32
32
|
*/
|
|
33
|
-
export const layer = Layer.
|
|
33
|
+
export const layer = Layer.effect(MqClientInstance, make);
|