@effect-aws/client-mq 1.2.0 → 1.9.3

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 (69) hide show
  1. package/Errors/package.json +6 -0
  2. package/MqClientInstance/package.json +6 -0
  3. package/MqService/package.json +6 -0
  4. package/MqServiceConfig/package.json +6 -0
  5. package/{lib → dist/cjs}/Errors.d.ts +6 -11
  6. package/dist/cjs/Errors.d.ts.map +1 -0
  7. package/dist/cjs/Errors.js +14 -0
  8. package/dist/cjs/Errors.js.map +1 -0
  9. package/dist/cjs/MqClientInstance.d.ts +24 -0
  10. package/dist/cjs/MqClientInstance.d.ts.map +1 -0
  11. package/dist/cjs/MqClientInstance.js +50 -0
  12. package/dist/cjs/MqClientInstance.js.map +1 -0
  13. package/dist/cjs/MqService.d.ts +133 -0
  14. package/dist/cjs/MqService.d.ts.map +1 -0
  15. package/dist/cjs/MqService.js +82 -0
  16. package/dist/cjs/MqService.js.map +1 -0
  17. package/dist/cjs/MqServiceConfig.d.ts +25 -0
  18. package/dist/cjs/MqServiceConfig.d.ts.map +1 -0
  19. package/dist/cjs/MqServiceConfig.js +35 -0
  20. package/dist/cjs/MqServiceConfig.js.map +1 -0
  21. package/dist/cjs/index.d.ts +39 -0
  22. package/dist/cjs/index.d.ts.map +1 -0
  23. package/dist/cjs/index.js +56 -0
  24. package/dist/cjs/index.js.map +1 -0
  25. package/dist/dts/Errors.d.ts +13 -0
  26. package/dist/dts/Errors.d.ts.map +1 -0
  27. package/dist/dts/MqClientInstance.d.ts +24 -0
  28. package/dist/dts/MqClientInstance.d.ts.map +1 -0
  29. package/dist/dts/MqService.d.ts +133 -0
  30. package/dist/dts/MqService.d.ts.map +1 -0
  31. package/dist/dts/MqServiceConfig.d.ts +25 -0
  32. package/dist/dts/MqServiceConfig.d.ts.map +1 -0
  33. package/dist/dts/index.d.ts +39 -0
  34. package/dist/dts/index.d.ts.map +1 -0
  35. package/dist/esm/Errors.js +11 -0
  36. package/dist/esm/Errors.js.map +1 -0
  37. package/dist/esm/MqClientInstance.js +23 -0
  38. package/dist/esm/MqClientInstance.js.map +1 -0
  39. package/dist/esm/MqService.js +55 -0
  40. package/dist/esm/MqService.js.map +1 -0
  41. package/dist/esm/MqServiceConfig.js +31 -0
  42. package/dist/esm/MqServiceConfig.js.map +1 -0
  43. package/dist/esm/index.js +27 -0
  44. package/dist/esm/index.js.map +1 -0
  45. package/dist/esm/package.json +4 -0
  46. package/package.json +60 -43
  47. package/src/Errors.ts +29 -0
  48. package/src/MqClientInstance.ts +33 -0
  49. package/src/MqService.ts +429 -0
  50. package/src/MqServiceConfig.ts +51 -0
  51. package/src/index.ts +44 -0
  52. package/CHANGELOG.md +0 -35
  53. package/docgen.json +0 -8
  54. package/lib/Errors.js +0 -14
  55. package/lib/MqClientInstance.d.ts +0 -31
  56. package/lib/MqClientInstance.js +0 -57
  57. package/lib/MqClientInstanceConfig.d.ts +0 -23
  58. package/lib/MqClientInstanceConfig.js +0 -44
  59. package/lib/MqService.d.ts +0 -180
  60. package/lib/MqService.js +0 -111
  61. package/lib/esm/Errors.js +0 -11
  62. package/lib/esm/MqClientInstance.js +0 -30
  63. package/lib/esm/MqClientInstanceConfig.js +0 -40
  64. package/lib/esm/MqService.js +0 -107
  65. package/lib/esm/index.js +0 -5
  66. package/lib/index.d.ts +0 -4
  67. package/lib/index.js +0 -21
  68. package/project.json +0 -77
  69. package/vitest.config.ts +0 -3
@@ -0,0 +1,133 @@
1
+ /**
2
+ * @since 1.0.0
3
+ */
4
+ import { type CreateBrokerCommandInput, type CreateBrokerCommandOutput, type CreateConfigurationCommandInput, type CreateConfigurationCommandOutput, type CreateTagsCommandInput, type CreateTagsCommandOutput, type CreateUserCommandInput, type CreateUserCommandOutput, type DeleteBrokerCommandInput, type DeleteBrokerCommandOutput, 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
+ import type { HttpHandlerOptions, SdkError, ServiceLogger } from "@effect-aws/commons";
6
+ import { Effect, Layer } from "effect";
7
+ import type { BadRequestError, ConflictError, ForbiddenError, InternalServerError, NotFoundError, UnauthorizedError } from "./Errors.js";
8
+ import * as Instance from "./MqClientInstance.js";
9
+ interface MqService$ {
10
+ readonly _: unique symbol;
11
+ /**
12
+ * @see {@link CreateBrokerCommand}
13
+ */
14
+ createBroker(args: CreateBrokerCommandInput, options?: HttpHandlerOptions): Effect.Effect<CreateBrokerCommandOutput, SdkError | BadRequestError | ConflictError | ForbiddenError | InternalServerError | UnauthorizedError>;
15
+ /**
16
+ * @see {@link CreateConfigurationCommand}
17
+ */
18
+ createConfiguration(args: CreateConfigurationCommandInput, options?: HttpHandlerOptions): Effect.Effect<CreateConfigurationCommandOutput, SdkError | BadRequestError | ConflictError | ForbiddenError | InternalServerError>;
19
+ /**
20
+ * @see {@link CreateTagsCommand}
21
+ */
22
+ createTags(args: CreateTagsCommandInput, options?: HttpHandlerOptions): Effect.Effect<CreateTagsCommandOutput, SdkError | BadRequestError | ForbiddenError | InternalServerError | NotFoundError>;
23
+ /**
24
+ * @see {@link CreateUserCommand}
25
+ */
26
+ createUser(args: CreateUserCommandInput, options?: HttpHandlerOptions): Effect.Effect<CreateUserCommandOutput, SdkError | BadRequestError | ConflictError | ForbiddenError | InternalServerError | NotFoundError>;
27
+ /**
28
+ * @see {@link DeleteBrokerCommand}
29
+ */
30
+ deleteBroker(args: DeleteBrokerCommandInput, options?: HttpHandlerOptions): Effect.Effect<DeleteBrokerCommandOutput, SdkError | BadRequestError | ForbiddenError | InternalServerError | NotFoundError>;
31
+ /**
32
+ * @see {@link DeleteTagsCommand}
33
+ */
34
+ deleteTags(args: DeleteTagsCommandInput, options?: HttpHandlerOptions): Effect.Effect<DeleteTagsCommandOutput, SdkError | BadRequestError | ForbiddenError | InternalServerError | NotFoundError>;
35
+ /**
36
+ * @see {@link DeleteUserCommand}
37
+ */
38
+ deleteUser(args: DeleteUserCommandInput, options?: HttpHandlerOptions): Effect.Effect<DeleteUserCommandOutput, SdkError | BadRequestError | ForbiddenError | InternalServerError | NotFoundError>;
39
+ /**
40
+ * @see {@link DescribeBrokerCommand}
41
+ */
42
+ describeBroker(args: DescribeBrokerCommandInput, options?: HttpHandlerOptions): Effect.Effect<DescribeBrokerCommandOutput, SdkError | BadRequestError | ForbiddenError | InternalServerError | NotFoundError>;
43
+ /**
44
+ * @see {@link DescribeBrokerEngineTypesCommand}
45
+ */
46
+ describeBrokerEngineTypes(args: DescribeBrokerEngineTypesCommandInput, options?: HttpHandlerOptions): Effect.Effect<DescribeBrokerEngineTypesCommandOutput, SdkError | BadRequestError | ForbiddenError | InternalServerError>;
47
+ /**
48
+ * @see {@link DescribeBrokerInstanceOptionsCommand}
49
+ */
50
+ describeBrokerInstanceOptions(args: DescribeBrokerInstanceOptionsCommandInput, options?: HttpHandlerOptions): Effect.Effect<DescribeBrokerInstanceOptionsCommandOutput, SdkError | BadRequestError | ForbiddenError | InternalServerError>;
51
+ /**
52
+ * @see {@link DescribeConfigurationCommand}
53
+ */
54
+ describeConfiguration(args: DescribeConfigurationCommandInput, options?: HttpHandlerOptions): Effect.Effect<DescribeConfigurationCommandOutput, SdkError | BadRequestError | ForbiddenError | InternalServerError | NotFoundError>;
55
+ /**
56
+ * @see {@link DescribeConfigurationRevisionCommand}
57
+ */
58
+ describeConfigurationRevision(args: DescribeConfigurationRevisionCommandInput, options?: HttpHandlerOptions): Effect.Effect<DescribeConfigurationRevisionCommandOutput, SdkError | BadRequestError | ForbiddenError | InternalServerError | NotFoundError>;
59
+ /**
60
+ * @see {@link DescribeUserCommand}
61
+ */
62
+ describeUser(args: DescribeUserCommandInput, options?: HttpHandlerOptions): Effect.Effect<DescribeUserCommandOutput, SdkError | BadRequestError | ForbiddenError | InternalServerError | NotFoundError>;
63
+ /**
64
+ * @see {@link ListBrokersCommand}
65
+ */
66
+ listBrokers(args: ListBrokersCommandInput, options?: HttpHandlerOptions): Effect.Effect<ListBrokersCommandOutput, SdkError | BadRequestError | ForbiddenError | InternalServerError>;
67
+ /**
68
+ * @see {@link ListConfigurationRevisionsCommand}
69
+ */
70
+ listConfigurationRevisions(args: ListConfigurationRevisionsCommandInput, options?: HttpHandlerOptions): Effect.Effect<ListConfigurationRevisionsCommandOutput, SdkError | BadRequestError | ForbiddenError | InternalServerError | NotFoundError>;
71
+ /**
72
+ * @see {@link ListConfigurationsCommand}
73
+ */
74
+ listConfigurations(args: ListConfigurationsCommandInput, options?: HttpHandlerOptions): Effect.Effect<ListConfigurationsCommandOutput, SdkError | BadRequestError | ForbiddenError | InternalServerError>;
75
+ /**
76
+ * @see {@link ListTagsCommand}
77
+ */
78
+ listTags(args: ListTagsCommandInput, options?: HttpHandlerOptions): Effect.Effect<ListTagsCommandOutput, SdkError | BadRequestError | ForbiddenError | InternalServerError | NotFoundError>;
79
+ /**
80
+ * @see {@link ListUsersCommand}
81
+ */
82
+ listUsers(args: ListUsersCommandInput, options?: HttpHandlerOptions): Effect.Effect<ListUsersCommandOutput, SdkError | BadRequestError | ForbiddenError | InternalServerError | NotFoundError>;
83
+ /**
84
+ * @see {@link PromoteCommand}
85
+ */
86
+ promote(args: PromoteCommandInput, options?: HttpHandlerOptions): Effect.Effect<PromoteCommandOutput, SdkError | BadRequestError | ForbiddenError | InternalServerError | NotFoundError>;
87
+ /**
88
+ * @see {@link RebootBrokerCommand}
89
+ */
90
+ rebootBroker(args: RebootBrokerCommandInput, options?: HttpHandlerOptions): Effect.Effect<RebootBrokerCommandOutput, SdkError | BadRequestError | ForbiddenError | InternalServerError | NotFoundError>;
91
+ /**
92
+ * @see {@link UpdateBrokerCommand}
93
+ */
94
+ updateBroker(args: UpdateBrokerCommandInput, options?: HttpHandlerOptions): Effect.Effect<UpdateBrokerCommandOutput, SdkError | BadRequestError | ConflictError | ForbiddenError | InternalServerError | NotFoundError>;
95
+ /**
96
+ * @see {@link UpdateConfigurationCommand}
97
+ */
98
+ updateConfiguration(args: UpdateConfigurationCommandInput, options?: HttpHandlerOptions): Effect.Effect<UpdateConfigurationCommandOutput, SdkError | BadRequestError | ConflictError | ForbiddenError | InternalServerError | NotFoundError>;
99
+ /**
100
+ * @see {@link UpdateUserCommand}
101
+ */
102
+ updateUser(args: UpdateUserCommandInput, options?: HttpHandlerOptions): Effect.Effect<UpdateUserCommandOutput, SdkError | BadRequestError | ConflictError | ForbiddenError | InternalServerError | NotFoundError>;
103
+ }
104
+ /**
105
+ * @since 1.0.0
106
+ * @category constructors
107
+ */
108
+ export declare const makeMqService: Effect.Effect<MqService$, never, Instance.MqClientInstance>;
109
+ declare const MqService_base: import("effect/Context").TagClass<MqService, "@effect-aws/client-mq/MqService", MqService$> & Effect.Tag.Proxy<MqService, MqService$> & {
110
+ 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, import("effect/Cause").UnknownException, MqService> : Effect.Effect<X, never, MqService>;
111
+ };
112
+ /**
113
+ * @since 1.0.0
114
+ * @category models
115
+ */
116
+ export declare class MqService extends MqService_base {
117
+ static readonly defaultLayer: Layer.Layer<MqService, never, never>;
118
+ static readonly layer: (config: MqService.Config) => Layer.Layer<MqService, never, never>;
119
+ static readonly baseLayer: (evaluate: (defaultConfig: MqClientConfig) => MqClient) => Layer.Layer<MqService, never, never>;
120
+ }
121
+ /**
122
+ * @since 1.0.0
123
+ */
124
+ export declare namespace MqService {
125
+ /**
126
+ * @since 1.0.0
127
+ */
128
+ interface Config extends Omit<MqClientConfig, "logger"> {
129
+ readonly logger?: ServiceLogger.ServiceLoggerConstructorProps | true;
130
+ }
131
+ }
132
+ export {};
133
+ //# sourceMappingURL=MqService.d.ts.map
@@ -0,0 +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,sBAAsB,EAC3B,KAAK,uBAAuB,EAE5B,KAAK,sBAAsB,EAC3B,KAAK,uBAAuB,EAE5B,KAAK,0BAA0B,EAC/B,KAAK,2BAA2B,EAEhC,KAAK,qCAAqC,EAC1C,KAAK,sCAAsC,EAE3C,KAAK,yCAAyC,EAC9C,KAAK,0CAA0C,EAE/C,KAAK,iCAAiC,EACtC,KAAK,kCAAkC,EAEvC,KAAK,yCAAyC,EAC9C,KAAK,0CAA0C,EAE/C,KAAK,wBAAwB,EAC7B,KAAK,yBAAyB,EAE9B,KAAK,uBAAuB,EAC5B,KAAK,wBAAwB,EAE7B,KAAK,sC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,cAAc,GAAG,mBAAmB,GAAG,aAAa,CAClG,CAAC;IAEF;;OAEG;IACH,mBAAmB,CACjB,IAAI,EAAE,+BAA+B,EACrC,OAAO,CAAC,EAAE,kBAAkB,GAC3B,MAAM,CAAC,MAAM,CACd,gCAAgC,EAChC,QAAQ,GAAG,eAAe,GAAG,aAAa,GAAG,cAAc,GAAG,mBAAmB,GAAG,aAAa,CAClG,CAAC;IAEF;;OAEG;IACH,UAAU,CACR,IAAI,EAAE,sBAAsB,EAC5B,OAAO,CAAC,EAAE,kBAAkB,GAC3B,MAAM,CAAC,MAAM,CACd,uBAAuB,EACvB,QAAQ,GAAG,eAAe,GAAG,aAAa,GAAG,cAAc,GAAG,mBAAmB,GAAG,aAAa,CAClG,CAAC;CACH;AAED;;;GAGG;AACH,eAAO,MAAM,aAAa,6DAWxB,CAAC;;;;AAEH;;;GAGG;AACH,qBAAa,SAAU,SAAQ,cAG5B;IACD,MAAM,CAAC,QAAQ,CAAC,YAAY,uCAAyE;IACrG,MAAM,CAAC,QAAQ,CAAC,KAAK,WAAY,UAAU,MAAM,0CAI7C;IACJ,MAAM,CAAC,QAAQ,CAAC,SAAS,aACb,CAAC,aAAa,EAAE,cAAc,KAAK,QAAQ,0CASnD;CACL;AAED;;GAEG;AACH,MAAM,CAAC,OAAO,WAAW,SAAS,CAAC;IACjC;;OAEG;IACH,UAAiB,MAAO,SAAQ,IAAI,CAAC,cAAc,EAAE,QAAQ,CAAC;QAC5D,QAAQ,CAAC,MAAM,CAAC,EAAE,aAAa,CAAC,6BAA6B,GAAG,IAAI,CAAC;KACtE;CACF"}
@@ -0,0 +1,25 @@
1
+ /**
2
+ * @since 1.0.0
3
+ */
4
+ import type { MqClientConfig } from "@aws-sdk/client-mq";
5
+ import { Effect, Layer } from "effect";
6
+ import type { MqService } from "./MqService.js";
7
+ /**
8
+ * @since 1.0.0
9
+ * @category mq service config
10
+ */
11
+ export declare const withMqServiceConfig: {
12
+ (config: MqService.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: MqService.Config): Effect.Effect<A, E, R>;
14
+ };
15
+ /**
16
+ * @since 1.0.0
17
+ * @category mq service config
18
+ */
19
+ export declare const setMqServiceConfig: (config: MqService.Config) => Layer.Layer<never, never, never>;
20
+ /**
21
+ * @since 1.0.0
22
+ * @category adapters
23
+ */
24
+ export declare const toMqClientConfig: Effect.Effect<MqClientConfig>;
25
+ //# sourceMappingURL=MqServiceConfig.d.ts.map
@@ -0,0 +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,EAAE,MAAM,EAAY,KAAK,EAAE,MAAM,QAAQ,CAAC;AAGjD,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,qCAAwD,CAAC;AAEpH;;;GAGG;AACH,eAAO,MAAM,gBAAgB,EAAE,MAAM,CAAC,MAAM,CAAC,cAAc,CAQzD,CAAC"}
@@ -0,0 +1,39 @@
1
+ /**
2
+ * @since 1.0.0
3
+ */
4
+ import { MqService } from "./MqService.js";
5
+ /**
6
+ * @since 1.0.0
7
+ */
8
+ export * from "./Errors.js";
9
+ /**
10
+ * @since 1.0.0
11
+ */
12
+ export * as MqClientInstance from "./MqClientInstance.js";
13
+ /**
14
+ * @since 1.0.0
15
+ */
16
+ export * as MqServiceConfig from "./MqServiceConfig.js";
17
+ /**
18
+ * @since 1.0.0
19
+ */
20
+ export * from "./MqService.js";
21
+ /**
22
+ * @since 1.0.0
23
+ * @category exports
24
+ * @alias MqService
25
+ */
26
+ export declare namespace Mq {
27
+ /**
28
+ * @since 1.0.0
29
+ * @alias MqService.Config
30
+ */
31
+ type Config = MqService.Config;
32
+ }
33
+ /**
34
+ * @since 1.0.0
35
+ * @category exports
36
+ * @alias MqService
37
+ */
38
+ export declare const Mq: typeof MqService;
39
+ //# 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,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAE3C;;GAEG;AACH,cAAc,aAAa,CAAC;AAE5B;;GAEG;AACH,OAAO,KAAK,gBAAgB,MAAM,uBAAuB,CAAC;AAE1D;;GAEG;AACH,OAAO,KAAK,eAAe,MAAM,sBAAsB,CAAC;AAExD;;GAEG;AACH,cAAc,gBAAgB,CAAC;AAE/B;;;;GAIG;AACH,MAAM,CAAC,OAAO,WAAW,EAAE,CAAC;IAC1B;;;OAGG;IACH,KAAY,MAAM,GAAG,SAAS,CAAC,MAAM,CAAC;CACvC;AAED;;;;GAIG;AACH,eAAO,MAAM,EAAE,kBAAY,CAAC"}
@@ -0,0 +1,11 @@
1
+ import { SdkError as CommonSdkError } from "@effect-aws/commons";
2
+ export const AllServiceErrors = [
3
+ "BadRequestException",
4
+ "ConflictException",
5
+ "ForbiddenException",
6
+ "InternalServerErrorException",
7
+ "NotFoundException",
8
+ "UnauthorizedException",
9
+ ];
10
+ export const SdkError = CommonSdkError;
11
+ //# sourceMappingURL=Errors.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Errors.js","sourceRoot":"","sources":["../../src/Errors.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,QAAQ,IAAI,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAEjE,MAAM,CAAC,MAAM,gBAAgB,GAAG;IAC9B,qBAAqB;IACrB,mBAAmB;IACnB,oBAAoB;IACpB,8BAA8B;IAC9B,mBAAmB;IACnB,uBAAuB;CACf,CAAC;AAUX,MAAM,CAAC,MAAM,QAAQ,GAAG,cAAc,CAAC"}
@@ -0,0 +1,23 @@
1
+ /**
2
+ * @since 1.0.0
3
+ */
4
+ import { MqClient } from "@aws-sdk/client-mq";
5
+ import { Context, Effect, Layer } from "effect";
6
+ import * as MqServiceConfig from "./MqServiceConfig.js";
7
+ /**
8
+ * @since 1.0.0
9
+ * @category tags
10
+ */
11
+ export class MqClientInstance extends Context.Tag("@effect-aws/client-mq/MqClientInstance")() {
12
+ }
13
+ /**
14
+ * @since 1.0.0
15
+ * @category constructors
16
+ */
17
+ export const make = Effect.flatMap(MqServiceConfig.toMqClientConfig, (config) => Effect.acquireRelease(Effect.sync(() => new MqClient(config)), (client) => Effect.sync(() => client.destroy())));
18
+ /**
19
+ * @since 1.0.0
20
+ * @category layers
21
+ */
22
+ export const layer = Layer.scoped(MqClientInstance, make);
23
+ //# sourceMappingURL=MqClientInstance.js.map
@@ -0,0 +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,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,QAAQ,CAAC;AAChD,OAAO,KAAK,eAAe,MAAM,sBAAsB,CAAC;AAExD;;;GAGG;AACH,MAAM,OAAO,gBAAiB,SAAQ,OAAO,CAAC,GAAG,CAC/C,wCAAwC,CACzC,EAA8B;CAAG;AAElC;;;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"}
@@ -0,0 +1,55 @@
1
+ /**
2
+ * @since 1.0.0
3
+ */
4
+ import { CreateBrokerCommand, CreateConfigurationCommand, CreateTagsCommand, CreateUserCommand, DeleteBrokerCommand, DeleteTagsCommand, DeleteUserCommand, DescribeBrokerCommand, DescribeBrokerEngineTypesCommand, DescribeBrokerInstanceOptionsCommand, DescribeConfigurationCommand, DescribeConfigurationRevisionCommand, DescribeUserCommand, ListBrokersCommand, ListConfigurationRevisionsCommand, ListConfigurationsCommand, ListTagsCommand, ListUsersCommand, PromoteCommand, RebootBrokerCommand, UpdateBrokerCommand, UpdateConfigurationCommand, UpdateUserCommand, } from "@aws-sdk/client-mq";
5
+ import { Service } from "@effect-aws/commons";
6
+ import { Effect, Layer } from "effect";
7
+ import { AllServiceErrors } from "./Errors.js";
8
+ import * as Instance from "./MqClientInstance.js";
9
+ import * as MqServiceConfig from "./MqServiceConfig.js";
10
+ const commands = {
11
+ CreateBrokerCommand,
12
+ CreateConfigurationCommand,
13
+ CreateTagsCommand,
14
+ CreateUserCommand,
15
+ DeleteBrokerCommand,
16
+ DeleteTagsCommand,
17
+ DeleteUserCommand,
18
+ DescribeBrokerCommand,
19
+ DescribeBrokerEngineTypesCommand,
20
+ DescribeBrokerInstanceOptionsCommand,
21
+ DescribeConfigurationCommand,
22
+ DescribeConfigurationRevisionCommand,
23
+ DescribeUserCommand,
24
+ ListBrokersCommand,
25
+ ListConfigurationRevisionsCommand,
26
+ ListConfigurationsCommand,
27
+ ListTagsCommand,
28
+ ListUsersCommand,
29
+ PromoteCommand,
30
+ RebootBrokerCommand,
31
+ UpdateBrokerCommand,
32
+ UpdateConfigurationCommand,
33
+ UpdateUserCommand,
34
+ };
35
+ /**
36
+ * @since 1.0.0
37
+ * @category constructors
38
+ */
39
+ export const makeMqService = Effect.gen(function* () {
40
+ const client = yield* Instance.MqClientInstance;
41
+ return Service.fromClientAndCommands(client, commands, {
42
+ errorTags: AllServiceErrors,
43
+ resolveClientConfig: MqServiceConfig.toMqClientConfig,
44
+ });
45
+ });
46
+ /**
47
+ * @since 1.0.0
48
+ * @category models
49
+ */
50
+ export class MqService extends Effect.Tag("@effect-aws/client-mq/MqService")() {
51
+ static defaultLayer = Layer.effect(this, makeMqService).pipe(Layer.provide(Instance.layer));
52
+ static layer = (config) => Layer.effect(this, makeMqService).pipe(Layer.provide(Instance.layer), Layer.provide(MqServiceConfig.setMqServiceConfig(config)));
53
+ static baseLayer = (evaluate) => Layer.effect(this, makeMqService).pipe(Layer.provide(Layer.effect(Instance.MqClientInstance, Effect.map(MqServiceConfig.toMqClientConfig, evaluate))));
54
+ }
55
+ //# sourceMappingURL=MqService.js.map
@@ -0,0 +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,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AAC;AACJ,CAAC,CAAC,CAAC;AAEH;;;GAGG;AACH,MAAM,OAAO,SAAU,SAAQ,MAAM,CAAC,GAAG,CAAC,iCAAiC,CAAC,EAGzE;IACD,MAAM,CAAU,YAAY,GAAG,KAAK,CAAC,MAAM,CAAC,IAAI,EAAE,aAAa,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC,CAAC;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"}
@@ -0,0 +1,31 @@
1
+ import { ServiceLogger } from "@effect-aws/commons";
2
+ import { Effect, FiberRef, Layer } from "effect";
3
+ import { dual } from "effect/Function";
4
+ import { globalValue } from "effect/GlobalValue";
5
+ /**
6
+ * @since 1.0.0
7
+ * @category mq service config
8
+ */
9
+ const currentMqServiceConfig = globalValue("@effect-aws/client-mq/currentMqServiceConfig", () => FiberRef.unsafeMake({}));
10
+ /**
11
+ * @since 1.0.0
12
+ * @category mq service config
13
+ */
14
+ export const withMqServiceConfig = dual(2, (effect, config) => Effect.locally(effect, currentMqServiceConfig, config));
15
+ /**
16
+ * @since 1.0.0
17
+ * @category mq service config
18
+ */
19
+ export const setMqServiceConfig = (config) => Layer.locallyScoped(currentMqServiceConfig, config);
20
+ /**
21
+ * @since 1.0.0
22
+ * @category adapters
23
+ */
24
+ export const toMqClientConfig = Effect.gen(function* () {
25
+ const { logger: serviceLogger, ...config } = yield* FiberRef.get(currentMqServiceConfig);
26
+ const logger = serviceLogger === true
27
+ ? yield* ServiceLogger.toClientLogger(ServiceLogger.defaultServiceLogger)
28
+ : (serviceLogger ? yield* ServiceLogger.toClientLogger(ServiceLogger.make(serviceLogger)) : undefined);
29
+ return { logger, ...config };
30
+ });
31
+ //# sourceMappingURL=MqServiceConfig.js.map
@@ -0,0 +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,QAAQ,EAAE,KAAK,EAAE,MAAM,QAAQ,CAAC;AACjD,OAAO,EAAE,IAAI,EAAE,MAAM,iBAAiB,CAAC;AACvC,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAGjD;;;GAGG;AACH,MAAM,sBAAsB,GAAG,WAAW,CACxC,8CAA8C,EAC9C,GAAG,EAAE,CAAC,QAAQ,CAAC,UAAU,CAAmB,EAAE,CAAC,CAChD,CAAC;AAEF;;;GAGG;AACH,MAAM,CAAC,MAAM,mBAAmB,GAG5B,IAAI,CACN,CAAC,EACD,CAAU,MAA8B,EAAE,MAAwB,EAA0B,EAAE,CAC5F,MAAM,CAAC,OAAO,CAAC,MAAM,EAAE,sBAAsB,EAAE,MAAM,CAAC,CACzD,CAAC;AAEF;;;GAGG;AACH,MAAM,CAAC,MAAM,kBAAkB,GAAG,CAAC,MAAwB,EAAE,EAAE,CAAC,KAAK,CAAC,aAAa,CAAC,sBAAsB,EAAE,MAAM,CAAC,CAAC;AAEpH;;;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,QAAQ,CAAC,GAAG,CAAC,sBAAsB,CAAC,CAAC;IAEzF,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"}
@@ -0,0 +1,27 @@
1
+ /**
2
+ * @since 1.0.0
3
+ */
4
+ import { MqService } from "./MqService.js";
5
+ /**
6
+ * @since 1.0.0
7
+ */
8
+ export * from "./Errors.js";
9
+ /**
10
+ * @since 1.0.0
11
+ */
12
+ export * as MqClientInstance from "./MqClientInstance.js";
13
+ /**
14
+ * @since 1.0.0
15
+ */
16
+ export * as MqServiceConfig from "./MqServiceConfig.js";
17
+ /**
18
+ * @since 1.0.0
19
+ */
20
+ export * from "./MqService.js";
21
+ /**
22
+ * @since 1.0.0
23
+ * @category exports
24
+ * @alias MqService
25
+ */
26
+ export const Mq = MqService;
27
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAE3C;;GAEG;AACH,cAAc,aAAa,CAAC;AAE5B;;GAEG;AACH,OAAO,KAAK,gBAAgB,MAAM,uBAAuB,CAAC;AAE1D;;GAEG;AACH,OAAO,KAAK,eAAe,MAAM,sBAAsB,CAAC;AAExD;;GAEG;AACH,cAAc,gBAAgB,CAAC;AAe/B;;;;GAIG;AACH,MAAM,CAAC,MAAM,EAAE,GAAG,SAAS,CAAC"}
@@ -0,0 +1,4 @@
1
+ {
2
+ "type": "module",
3
+ "sideEffects": []
4
+ }
package/package.json CHANGED
@@ -1,54 +1,71 @@
1
1
  {
2
2
  "name": "@effect-aws/client-mq",
3
+ "version": "1.9.3",
4
+ "description": "Effectful AWS MQ client",
5
+ "license": "MIT",
6
+ "repository": {
7
+ "type": "git",
8
+ "url": "github:floydspace/effect-aws",
9
+ "directory": "packages/client-mq"
10
+ },
11
+ "sideEffects": [],
3
12
  "author": {
4
13
  "name": "Victor Korzunin",
5
- "email": "ifloydrose@gmail.com",
6
- "organization": false
14
+ "email": "ifloydrose@gmail.com"
7
15
  },
8
- "devDependencies": {
9
- "@types/node": "^18",
10
- "@typescript-eslint/eslint-plugin": "^7",
11
- "@typescript-eslint/parser": "^7",
12
- "aws-sdk-client-mock": "^4.0.2",
13
- "aws-sdk-client-mock-vitest": "^4.0.0",
14
- "effect": "3.0.0",
15
- "eslint": "^8",
16
- "eslint-config-prettier": "^9.1.0",
17
- "eslint-import-resolver-typescript": "^3.6.1",
18
- "eslint-plugin-import": "^2.29.1",
19
- "eslint-plugin-prettier": "^5.2.1",
20
- "prettier": "^3.2.5",
21
- "typescript": "^5.4.2",
22
- "vitest": "^2.0.5"
16
+ "homepage": "https://floydspace.github.io/effect-aws/docs/client-mq",
17
+ "dependencies": {
18
+ "@aws-sdk/client-mq": "^3",
19
+ "@effect-aws/commons": "^0.2.0"
23
20
  },
24
21
  "peerDependencies": {
25
- "effect": ">=3.0.0 <4.0.0"
22
+ "effect": ">=3.0.4 <4.0.0"
26
23
  },
27
- "dependencies": {
28
- "@aws-sdk/client-mq": "^3"
29
- },
30
- "main": "lib/index.js",
31
- "license": "MIT",
32
- "homepage": "https://floydspace.github.io/effect-aws",
33
- "publishConfig": {
34
- "access": "public"
24
+ "main": "./dist/cjs/index.js",
25
+ "module": "./dist/esm/index.js",
26
+ "types": "./dist/dts/index.d.ts",
27
+ "exports": {
28
+ "./package.json": "./package.json",
29
+ ".": {
30
+ "types": "./dist/dts/index.d.ts",
31
+ "import": "./dist/esm/index.js",
32
+ "default": "./dist/cjs/index.js"
33
+ },
34
+ "./Errors": {
35
+ "types": "./dist/dts/Errors.d.ts",
36
+ "import": "./dist/esm/Errors.js",
37
+ "default": "./dist/cjs/Errors.js"
38
+ },
39
+ "./MqClientInstance": {
40
+ "types": "./dist/dts/MqClientInstance.d.ts",
41
+ "import": "./dist/esm/MqClientInstance.js",
42
+ "default": "./dist/cjs/MqClientInstance.js"
43
+ },
44
+ "./MqService": {
45
+ "types": "./dist/dts/MqService.d.ts",
46
+ "import": "./dist/esm/MqService.js",
47
+ "default": "./dist/cjs/MqService.js"
48
+ },
49
+ "./MqServiceConfig": {
50
+ "types": "./dist/dts/MqServiceConfig.d.ts",
51
+ "import": "./dist/esm/MqServiceConfig.js",
52
+ "default": "./dist/cjs/MqServiceConfig.js"
53
+ }
35
54
  },
36
- "version": "1.2.0",
37
- "types": "lib/index.d.ts",
38
- "module": "lib/esm/index.js",
39
- "sideEffects": [],
40
- "//": "~~ Generated by projen. To modify, edit .projenrc.js and run \"npx projen\".",
41
- "scripts": {
42
- "build": "npx projen build",
43
- "compile": "npx projen compile",
44
- "default": "npx projen default",
45
- "eslint": "npx projen eslint",
46
- "package": "npx projen package",
47
- "post-compile": "npx projen post-compile",
48
- "pre-compile": "npx projen pre-compile",
49
- "test": "npx projen test",
50
- "test:watch": "npx projen test:watch",
51
- "watch": "npx projen watch",
52
- "docgen": "docgen"
55
+ "typesVersions": {
56
+ "*": {
57
+ "Errors": [
58
+ "./dist/dts/Errors.d.ts"
59
+ ],
60
+ "MqClientInstance": [
61
+ "./dist/dts/MqClientInstance.d.ts"
62
+ ],
63
+ "MqService": [
64
+ "./dist/dts/MqService.d.ts"
65
+ ],
66
+ "MqServiceConfig": [
67
+ "./dist/dts/MqServiceConfig.d.ts"
68
+ ]
69
+ }
53
70
  }
54
71
  }
package/src/Errors.ts ADDED
@@ -0,0 +1,29 @@
1
+ import type {
2
+ BadRequestException,
3
+ ConflictException,
4
+ ForbiddenException,
5
+ InternalServerErrorException,
6
+ NotFoundException,
7
+ UnauthorizedException,
8
+ } from "@aws-sdk/client-mq";
9
+ import type { TaggedException } from "@effect-aws/commons";
10
+ import { SdkError as CommonSdkError } from "@effect-aws/commons";
11
+
12
+ export const AllServiceErrors = [
13
+ "BadRequestException",
14
+ "ConflictException",
15
+ "ForbiddenException",
16
+ "InternalServerErrorException",
17
+ "NotFoundException",
18
+ "UnauthorizedException",
19
+ ] as const;
20
+
21
+ export type BadRequestError = TaggedException<BadRequestException>;
22
+ export type ConflictError = TaggedException<ConflictException>;
23
+ export type ForbiddenError = TaggedException<ForbiddenException>;
24
+ export type InternalServerError = TaggedException<InternalServerErrorException>;
25
+ export type NotFoundError = TaggedException<NotFoundException>;
26
+ export type UnauthorizedError = TaggedException<UnauthorizedException>;
27
+
28
+ export type SdkError = CommonSdkError;
29
+ export const SdkError = CommonSdkError;
@@ -0,0 +1,33 @@
1
+ /**
2
+ * @since 1.0.0
3
+ */
4
+ import { MqClient } from "@aws-sdk/client-mq";
5
+ import { Context, Effect, Layer } from "effect";
6
+ import * as MqServiceConfig from "./MqServiceConfig.js";
7
+
8
+ /**
9
+ * @since 1.0.0
10
+ * @category tags
11
+ */
12
+ export class MqClientInstance extends Context.Tag(
13
+ "@effect-aws/client-mq/MqClientInstance",
14
+ )<MqClientInstance, MqClient>() {}
15
+
16
+ /**
17
+ * @since 1.0.0
18
+ * @category constructors
19
+ */
20
+ export const make = Effect.flatMap(
21
+ MqServiceConfig.toMqClientConfig,
22
+ (config) =>
23
+ Effect.acquireRelease(
24
+ Effect.sync(() => new MqClient(config)),
25
+ (client) => Effect.sync(() => client.destroy()),
26
+ ),
27
+ );
28
+
29
+ /**
30
+ * @since 1.0.0
31
+ * @category layers
32
+ */
33
+ export const layer = Layer.scoped(MqClientInstance, make);