@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.
Files changed (38) hide show
  1. package/LICENSE +1 -1
  2. package/README.md +3 -3
  3. package/dist/dts/MqClientInstance.d.ts +4 -2
  4. package/dist/dts/MqClientInstance.d.ts.map +1 -1
  5. package/dist/dts/MqService.d.ts +29 -29
  6. package/dist/dts/MqService.d.ts.map +1 -1
  7. package/dist/dts/MqServiceConfig.d.ts +2 -1
  8. package/dist/dts/MqServiceConfig.d.ts.map +1 -1
  9. package/dist/esm/MqClientInstance.js +5 -3
  10. package/dist/esm/MqClientInstance.js.map +1 -1
  11. package/dist/esm/MqService.js +4 -2
  12. package/dist/esm/MqService.js.map +1 -1
  13. package/dist/esm/MqServiceConfig.js +7 -6
  14. package/dist/esm/MqServiceConfig.js.map +1 -1
  15. package/package.json +8 -14
  16. package/src/MqClientInstance.ts +6 -4
  17. package/src/MqService.ts +30 -28
  18. package/src/MqServiceConfig.ts +8 -7
  19. package/dist/cjs/Errors.d.ts +0 -13
  20. package/dist/cjs/Errors.d.ts.map +0 -1
  21. package/dist/cjs/Errors.js +0 -12
  22. package/dist/cjs/Errors.js.map +0 -1
  23. package/dist/cjs/MqClientInstance.d.ts +0 -24
  24. package/dist/cjs/MqClientInstance.d.ts.map +0 -1
  25. package/dist/cjs/MqClientInstance.js +0 -50
  26. package/dist/cjs/MqClientInstance.js.map +0 -1
  27. package/dist/cjs/MqService.d.ts +0 -142
  28. package/dist/cjs/MqService.d.ts.map +0 -1
  29. package/dist/cjs/MqService.js +0 -83
  30. package/dist/cjs/MqService.js.map +0 -1
  31. package/dist/cjs/MqServiceConfig.d.ts +0 -25
  32. package/dist/cjs/MqServiceConfig.d.ts.map +0 -1
  33. package/dist/cjs/MqServiceConfig.js +0 -35
  34. package/dist/cjs/MqServiceConfig.js.map +0 -1
  35. package/dist/cjs/index.d.ts +0 -44
  36. package/dist/cjs/index.d.ts.map +0 -1
  37. package/dist/cjs/index.js +0 -56
  38. package/dist/cjs/index.js.map +0 -1
package/src/MqService.ts CHANGED
@@ -79,8 +79,10 @@ import {
79
79
  } from "@aws-sdk/client-mq";
80
80
  import type { HttpHandlerOptions, ServiceLogger } from "@effect-aws/commons";
81
81
  import { Service } from "@effect-aws/commons";
82
- import type { Cause } from "effect";
83
- import { Effect, Layer } from "effect";
82
+ import type * as Cause from "effect/Cause";
83
+ import * as Effect from "effect/Effect";
84
+ import * as Layer from "effect/Layer";
85
+ import * as ServiceMap from "effect/ServiceMap";
84
86
  import type {
85
87
  BadRequestError,
86
88
  ConflictError,
@@ -132,7 +134,7 @@ interface MqService$ {
132
134
  options?: HttpHandlerOptions,
133
135
  ): Effect.Effect<
134
136
  CreateBrokerCommandOutput,
135
- | Cause.TimeoutException
137
+ | Cause.TimeoutError
136
138
  | SdkError
137
139
  | BadRequestError
138
140
  | ConflictError
@@ -149,7 +151,7 @@ interface MqService$ {
149
151
  options?: HttpHandlerOptions,
150
152
  ): Effect.Effect<
151
153
  CreateConfigurationCommandOutput,
152
- Cause.TimeoutException | SdkError | BadRequestError | ConflictError | ForbiddenError | InternalServerError
154
+ Cause.TimeoutError | SdkError | BadRequestError | ConflictError | ForbiddenError | InternalServerError
153
155
  >;
154
156
 
155
157
  /**
@@ -160,7 +162,7 @@ interface MqService$ {
160
162
  options?: HttpHandlerOptions,
161
163
  ): Effect.Effect<
162
164
  CreateTagsCommandOutput,
163
- Cause.TimeoutException | SdkError | BadRequestError | ForbiddenError | InternalServerError | NotFoundError
165
+ Cause.TimeoutError | SdkError | BadRequestError | ForbiddenError | InternalServerError | NotFoundError
164
166
  >;
165
167
 
166
168
  /**
@@ -171,7 +173,7 @@ interface MqService$ {
171
173
  options?: HttpHandlerOptions,
172
174
  ): Effect.Effect<
173
175
  CreateUserCommandOutput,
174
- | Cause.TimeoutException
176
+ | Cause.TimeoutError
175
177
  | SdkError
176
178
  | BadRequestError
177
179
  | ConflictError
@@ -188,7 +190,7 @@ interface MqService$ {
188
190
  options?: HttpHandlerOptions,
189
191
  ): Effect.Effect<
190
192
  DeleteBrokerCommandOutput,
191
- Cause.TimeoutException | SdkError | BadRequestError | ForbiddenError | InternalServerError | NotFoundError
193
+ Cause.TimeoutError | SdkError | BadRequestError | ForbiddenError | InternalServerError | NotFoundError
192
194
  >;
193
195
 
194
196
  /**
@@ -199,7 +201,7 @@ interface MqService$ {
199
201
  options?: HttpHandlerOptions,
200
202
  ): Effect.Effect<
201
203
  DeleteConfigurationCommandOutput,
202
- | Cause.TimeoutException
204
+ | Cause.TimeoutError
203
205
  | SdkError
204
206
  | BadRequestError
205
207
  | ConflictError
@@ -216,7 +218,7 @@ interface MqService$ {
216
218
  options?: HttpHandlerOptions,
217
219
  ): Effect.Effect<
218
220
  DeleteTagsCommandOutput,
219
- Cause.TimeoutException | SdkError | BadRequestError | ForbiddenError | InternalServerError | NotFoundError
221
+ Cause.TimeoutError | SdkError | BadRequestError | ForbiddenError | InternalServerError | NotFoundError
220
222
  >;
221
223
 
222
224
  /**
@@ -227,7 +229,7 @@ interface MqService$ {
227
229
  options?: HttpHandlerOptions,
228
230
  ): Effect.Effect<
229
231
  DeleteUserCommandOutput,
230
- Cause.TimeoutException | SdkError | BadRequestError | ForbiddenError | InternalServerError | NotFoundError
232
+ Cause.TimeoutError | SdkError | BadRequestError | ForbiddenError | InternalServerError | NotFoundError
231
233
  >;
232
234
 
233
235
  /**
@@ -238,7 +240,7 @@ interface MqService$ {
238
240
  options?: HttpHandlerOptions,
239
241
  ): Effect.Effect<
240
242
  DescribeBrokerCommandOutput,
241
- Cause.TimeoutException | SdkError | BadRequestError | ForbiddenError | InternalServerError | NotFoundError
243
+ Cause.TimeoutError | SdkError | BadRequestError | ForbiddenError | InternalServerError | NotFoundError
242
244
  >;
243
245
 
244
246
  /**
@@ -249,7 +251,7 @@ interface MqService$ {
249
251
  options?: HttpHandlerOptions,
250
252
  ): Effect.Effect<
251
253
  DescribeBrokerEngineTypesCommandOutput,
252
- Cause.TimeoutException | SdkError | BadRequestError | ForbiddenError | InternalServerError
254
+ Cause.TimeoutError | SdkError | BadRequestError | ForbiddenError | InternalServerError
253
255
  >;
254
256
 
255
257
  /**
@@ -260,7 +262,7 @@ interface MqService$ {
260
262
  options?: HttpHandlerOptions,
261
263
  ): Effect.Effect<
262
264
  DescribeBrokerInstanceOptionsCommandOutput,
263
- Cause.TimeoutException | SdkError | BadRequestError | ForbiddenError | InternalServerError
265
+ Cause.TimeoutError | SdkError | BadRequestError | ForbiddenError | InternalServerError
264
266
  >;
265
267
 
266
268
  /**
@@ -271,7 +273,7 @@ interface MqService$ {
271
273
  options?: HttpHandlerOptions,
272
274
  ): Effect.Effect<
273
275
  DescribeConfigurationCommandOutput,
274
- Cause.TimeoutException | SdkError | BadRequestError | ForbiddenError | InternalServerError | NotFoundError
276
+ Cause.TimeoutError | SdkError | BadRequestError | ForbiddenError | InternalServerError | NotFoundError
275
277
  >;
276
278
 
277
279
  /**
@@ -282,7 +284,7 @@ interface MqService$ {
282
284
  options?: HttpHandlerOptions,
283
285
  ): Effect.Effect<
284
286
  DescribeConfigurationRevisionCommandOutput,
285
- Cause.TimeoutException | SdkError | BadRequestError | ForbiddenError | InternalServerError | NotFoundError
287
+ Cause.TimeoutError | SdkError | BadRequestError | ForbiddenError | InternalServerError | NotFoundError
286
288
  >;
287
289
 
288
290
  /**
@@ -293,7 +295,7 @@ interface MqService$ {
293
295
  options?: HttpHandlerOptions,
294
296
  ): Effect.Effect<
295
297
  DescribeUserCommandOutput,
296
- Cause.TimeoutException | SdkError | BadRequestError | ForbiddenError | InternalServerError | NotFoundError
298
+ Cause.TimeoutError | SdkError | BadRequestError | ForbiddenError | InternalServerError | NotFoundError
297
299
  >;
298
300
 
299
301
  /**
@@ -304,7 +306,7 @@ interface MqService$ {
304
306
  options?: HttpHandlerOptions,
305
307
  ): Effect.Effect<
306
308
  ListBrokersCommandOutput,
307
- Cause.TimeoutException | SdkError | BadRequestError | ForbiddenError | InternalServerError
309
+ Cause.TimeoutError | SdkError | BadRequestError | ForbiddenError | InternalServerError
308
310
  >;
309
311
 
310
312
  /**
@@ -315,7 +317,7 @@ interface MqService$ {
315
317
  options?: HttpHandlerOptions,
316
318
  ): Effect.Effect<
317
319
  ListConfigurationRevisionsCommandOutput,
318
- Cause.TimeoutException | SdkError | BadRequestError | ForbiddenError | InternalServerError | NotFoundError
320
+ Cause.TimeoutError | SdkError | BadRequestError | ForbiddenError | InternalServerError | NotFoundError
319
321
  >;
320
322
 
321
323
  /**
@@ -326,7 +328,7 @@ interface MqService$ {
326
328
  options?: HttpHandlerOptions,
327
329
  ): Effect.Effect<
328
330
  ListConfigurationsCommandOutput,
329
- Cause.TimeoutException | SdkError | BadRequestError | ForbiddenError | InternalServerError
331
+ Cause.TimeoutError | SdkError | BadRequestError | ForbiddenError | InternalServerError
330
332
  >;
331
333
 
332
334
  /**
@@ -337,7 +339,7 @@ interface MqService$ {
337
339
  options?: HttpHandlerOptions,
338
340
  ): Effect.Effect<
339
341
  ListTagsCommandOutput,
340
- Cause.TimeoutException | SdkError | BadRequestError | ForbiddenError | InternalServerError | NotFoundError
342
+ Cause.TimeoutError | SdkError | BadRequestError | ForbiddenError | InternalServerError | NotFoundError
341
343
  >;
342
344
 
343
345
  /**
@@ -348,7 +350,7 @@ interface MqService$ {
348
350
  options?: HttpHandlerOptions,
349
351
  ): Effect.Effect<
350
352
  ListUsersCommandOutput,
351
- Cause.TimeoutException | SdkError | BadRequestError | ForbiddenError | InternalServerError | NotFoundError
353
+ Cause.TimeoutError | SdkError | BadRequestError | ForbiddenError | InternalServerError | NotFoundError
352
354
  >;
353
355
 
354
356
  /**
@@ -359,7 +361,7 @@ interface MqService$ {
359
361
  options?: HttpHandlerOptions,
360
362
  ): Effect.Effect<
361
363
  PromoteCommandOutput,
362
- Cause.TimeoutException | SdkError | BadRequestError | ForbiddenError | InternalServerError | NotFoundError
364
+ Cause.TimeoutError | SdkError | BadRequestError | ForbiddenError | InternalServerError | NotFoundError
363
365
  >;
364
366
 
365
367
  /**
@@ -370,7 +372,7 @@ interface MqService$ {
370
372
  options?: HttpHandlerOptions,
371
373
  ): Effect.Effect<
372
374
  RebootBrokerCommandOutput,
373
- Cause.TimeoutException | SdkError | BadRequestError | ForbiddenError | InternalServerError | NotFoundError
375
+ Cause.TimeoutError | SdkError | BadRequestError | ForbiddenError | InternalServerError | NotFoundError
374
376
  >;
375
377
 
376
378
  /**
@@ -381,7 +383,7 @@ interface MqService$ {
381
383
  options?: HttpHandlerOptions,
382
384
  ): Effect.Effect<
383
385
  UpdateBrokerCommandOutput,
384
- | Cause.TimeoutException
386
+ | Cause.TimeoutError
385
387
  | SdkError
386
388
  | BadRequestError
387
389
  | ConflictError
@@ -398,7 +400,7 @@ interface MqService$ {
398
400
  options?: HttpHandlerOptions,
399
401
  ): Effect.Effect<
400
402
  UpdateConfigurationCommandOutput,
401
- | Cause.TimeoutException
403
+ | Cause.TimeoutError
402
404
  | SdkError
403
405
  | BadRequestError
404
406
  | ConflictError
@@ -415,7 +417,7 @@ interface MqService$ {
415
417
  options?: HttpHandlerOptions,
416
418
  ): Effect.Effect<
417
419
  UpdateUserCommandOutput,
418
- | Cause.TimeoutException
420
+ | Cause.TimeoutError
419
421
  | SdkError
420
422
  | BadRequestError
421
423
  | ConflictError
@@ -446,10 +448,10 @@ export const makeMqService = Effect.gen(function*() {
446
448
  * @since 1.0.0
447
449
  * @category models
448
450
  */
449
- export class MqService extends Effect.Tag("@effect-aws/client-mq/MqService")<
451
+ export class MqService extends ServiceMap.Service<
450
452
  MqService,
451
453
  MqService$
452
- >() {
454
+ >()("@effect-aws/client-mq/MqService") {
453
455
  static readonly defaultLayer = Layer.effect(this, makeMqService).pipe(Layer.provide(Instance.layer));
454
456
  static readonly layer = (config: MqService.Config) =>
455
457
  Layer.effect(this, makeMqService).pipe(
@@ -3,18 +3,19 @@
3
3
  */
4
4
  import type { MqClientConfig } from "@aws-sdk/client-mq";
5
5
  import { ServiceLogger } from "@effect-aws/commons";
6
- import { Effect, FiberRef, Layer } from "effect";
6
+ import * as Effect from "effect/Effect";
7
7
  import { dual } from "effect/Function";
8
- import { globalValue } from "effect/GlobalValue";
8
+ import * as Layer from "effect/Layer";
9
+ import * as ServiceMap from "effect/ServiceMap";
9
10
  import type { MqService } from "./MqService.js";
10
11
 
11
12
  /**
12
13
  * @since 1.0.0
13
14
  * @category mq service config
14
15
  */
15
- const currentMqServiceConfig = globalValue(
16
+ const currentMqServiceConfig = ServiceMap.Reference<MqService.Config>(
16
17
  "@effect-aws/client-mq/currentMqServiceConfig",
17
- () => FiberRef.unsafeMake<MqService.Config>({}),
18
+ { defaultValue: () => ({}) },
18
19
  );
19
20
 
20
21
  /**
@@ -27,21 +28,21 @@ export const withMqServiceConfig: {
27
28
  } = dual(
28
29
  2,
29
30
  <A, E, R>(effect: Effect.Effect<A, E, R>, config: MqService.Config): Effect.Effect<A, E, R> =>
30
- Effect.locally(effect, currentMqServiceConfig, config),
31
+ Effect.provideService(effect, currentMqServiceConfig, config),
31
32
  );
32
33
 
33
34
  /**
34
35
  * @since 1.0.0
35
36
  * @category mq service config
36
37
  */
37
- export const setMqServiceConfig = (config: MqService.Config) => Layer.locallyScoped(currentMqServiceConfig, config);
38
+ export const setMqServiceConfig = (config: MqService.Config) => Layer.succeed(currentMqServiceConfig, config);
38
39
 
39
40
  /**
40
41
  * @since 1.0.0
41
42
  * @category adapters
42
43
  */
43
44
  export const toMqClientConfig: Effect.Effect<MqClientConfig> = Effect.gen(function*() {
44
- const { logger: serviceLogger, ...config } = yield* FiberRef.get(currentMqServiceConfig);
45
+ const { logger: serviceLogger, ...config } = yield* currentMqServiceConfig;
45
46
 
46
47
  const logger = serviceLogger === true
47
48
  ? yield* ServiceLogger.toClientLogger(ServiceLogger.defaultServiceLogger)
@@ -1,13 +0,0 @@
1
- import type { BadRequestException, ConflictException, ForbiddenException, InternalServerErrorException, NotFoundException, UnauthorizedException } from "@aws-sdk/client-mq";
2
- import type { TaggedException } from "@effect-aws/commons";
3
- export declare const AllServiceErrors: readonly ["BadRequestException", "ConflictException", "ForbiddenException", "InternalServerErrorException", "NotFoundException", "UnauthorizedException"];
4
- export type BadRequestError = TaggedException<BadRequestException>;
5
- export type ConflictError = TaggedException<ConflictException>;
6
- export type ForbiddenError = TaggedException<ForbiddenException>;
7
- export type InternalServerError = TaggedException<InternalServerErrorException>;
8
- export type NotFoundError = TaggedException<NotFoundException>;
9
- export type UnauthorizedError = TaggedException<UnauthorizedException>;
10
- export type SdkError = TaggedException<Error & {
11
- name: "SdkError";
12
- }>;
13
- //# sourceMappingURL=Errors.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Errors.d.ts","sourceRoot":"","sources":["../../src/Errors.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,mBAAmB,EACnB,iBAAiB,EACjB,kBAAkB,EAClB,4BAA4B,EAC5B,iBAAiB,EACjB,qBAAqB,EACtB,MAAM,oBAAoB,CAAC;AAC5B,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAE3D,eAAO,MAAM,gBAAgB,2JAOnB,CAAC;AAEX,MAAM,MAAM,eAAe,GAAG,eAAe,CAAC,mBAAmB,CAAC,CAAC;AACnE,MAAM,MAAM,aAAa,GAAG,eAAe,CAAC,iBAAiB,CAAC,CAAC;AAC/D,MAAM,MAAM,cAAc,GAAG,eAAe,CAAC,kBAAkB,CAAC,CAAC;AACjE,MAAM,MAAM,mBAAmB,GAAG,eAAe,CAAC,4BAA4B,CAAC,CAAC;AAChF,MAAM,MAAM,aAAa,GAAG,eAAe,CAAC,iBAAiB,CAAC,CAAC;AAC/D,MAAM,MAAM,iBAAiB,GAAG,eAAe,CAAC,qBAAqB,CAAC,CAAC;AACvE,MAAM,MAAM,QAAQ,GAAG,eAAe,CAAC,KAAK,GAAG;IAAE,IAAI,EAAE,UAAU,CAAA;CAAE,CAAC,CAAC"}
@@ -1,12 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.AllServiceErrors = void 0;
4
- exports.AllServiceErrors = [
5
- "BadRequestException",
6
- "ConflictException",
7
- "ForbiddenException",
8
- "InternalServerErrorException",
9
- "NotFoundException",
10
- "UnauthorizedException",
11
- ];
12
- //# sourceMappingURL=Errors.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Errors.js","sourceRoot":"","sources":["../../src/Errors.ts"],"names":[],"mappings":";;;AAUa,QAAA,gBAAgB,GAAG;IAC9B,qBAAqB;IACrB,mBAAmB;IACnB,oBAAoB;IACpB,8BAA8B;IAC9B,mBAAmB;IACnB,uBAAuB;CACf,CAAC"}
@@ -1,24 +0,0 @@
1
- /**
2
- * @since 1.0.0
3
- */
4
- import { MqClient } from "@aws-sdk/client-mq";
5
- import { Context, Effect, Layer } from "effect";
6
- declare const MqClientInstance_base: Context.TagClass<MqClientInstance, "@effect-aws/client-mq/MqClientInstance", MqClient>;
7
- /**
8
- * @since 1.0.0
9
- * @category tags
10
- */
11
- export declare class MqClientInstance extends MqClientInstance_base {
12
- }
13
- /**
14
- * @since 1.0.0
15
- * @category constructors
16
- */
17
- export declare const make: Effect.Effect<MqClient, never, import("effect/Scope").Scope>;
18
- /**
19
- * @since 1.0.0
20
- * @category layers
21
- */
22
- export declare const layer: Layer.Layer<MqClientInstance, never, never>;
23
- export {};
24
- //# sourceMappingURL=MqClientInstance.d.ts.map
@@ -1 +0,0 @@
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,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,QAAQ,CAAC;;AAGhD;;;GAGG;AACH,qBAAa,gBAAiB,SAAQ,qBAEP;CAAG;AAElC;;;GAGG;AACH,eAAO,MAAM,IAAI,8DAOhB,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,KAAK,6CAAuC,CAAC"}
@@ -1,50 +0,0 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
- Object.defineProperty(o, "default", { enumerable: true, value: v });
15
- }) : function(o, v) {
16
- o["default"] = v;
17
- });
18
- var __importStar = (this && this.__importStar) || function (mod) {
19
- if (mod && mod.__esModule) return mod;
20
- var result = {};
21
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
- __setModuleDefault(result, mod);
23
- return result;
24
- };
25
- Object.defineProperty(exports, "__esModule", { value: true });
26
- exports.layer = exports.make = exports.MqClientInstance = void 0;
27
- /**
28
- * @since 1.0.0
29
- */
30
- const client_mq_1 = require("@aws-sdk/client-mq");
31
- const effect_1 = require("effect");
32
- const MqServiceConfig = __importStar(require("./MqServiceConfig.js"));
33
- /**
34
- * @since 1.0.0
35
- * @category tags
36
- */
37
- class MqClientInstance extends effect_1.Context.Tag("@effect-aws/client-mq/MqClientInstance")() {
38
- }
39
- exports.MqClientInstance = MqClientInstance;
40
- /**
41
- * @since 1.0.0
42
- * @category constructors
43
- */
44
- exports.make = effect_1.Effect.flatMap(MqServiceConfig.toMqClientConfig, (config) => effect_1.Effect.acquireRelease(effect_1.Effect.sync(() => new client_mq_1.MqClient(config)), (client) => effect_1.Effect.sync(() => client.destroy())));
45
- /**
46
- * @since 1.0.0
47
- * @category layers
48
- */
49
- exports.layer = effect_1.Layer.scoped(MqClientInstance, exports.make);
50
- //# sourceMappingURL=MqClientInstance.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"MqClientInstance.js","sourceRoot":"","sources":["../../src/MqClientInstance.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;GAEG;AACH,kDAA8C;AAC9C,mCAAgD;AAChD,sEAAwD;AAExD;;;GAGG;AACH,MAAa,gBAAiB,SAAQ,gBAAO,CAAC,GAAG,CAC/C,wCAAwC,CACzC,EAA8B;CAAG;AAFlC,4CAEkC;AAElC;;;GAGG;AACU,QAAA,IAAI,GAAG,eAAM,CAAC,OAAO,CAChC,eAAe,CAAC,gBAAgB,EAChC,CAAC,MAAM,EAAE,EAAE,CACT,eAAM,CAAC,cAAc,CACnB,eAAM,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,IAAI,oBAAQ,CAAC,MAAM,CAAC,CAAC,EACvC,CAAC,MAAM,EAAE,EAAE,CAAC,eAAM,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,MAAM,CAAC,OAAO,EAAE,CAAC,CAChD,CACJ,CAAC;AAEF;;;GAGG;AACU,QAAA,KAAK,GAAG,cAAK,CAAC,MAAM,CAAC,gBAAgB,EAAE,YAAI,CAAC,CAAC"}
@@ -1,142 +0,0 @@
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 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
- import type { HttpHandlerOptions, ServiceLogger } from "@effect-aws/commons";
6
- import type { Cause } from "effect";
7
- import { Effect, Layer } from "effect";
8
- import type { BadRequestError, ConflictError, ForbiddenError, InternalServerError, NotFoundError, SdkError, UnauthorizedError } from "./Errors.js";
9
- import * as Instance from "./MqClientInstance.js";
10
- interface MqService$ {
11
- readonly _: unique symbol;
12
- /**
13
- * @see {@link CreateBrokerCommand}
14
- */
15
- createBroker(args: CreateBrokerCommandInput, options?: HttpHandlerOptions): Effect.Effect<CreateBrokerCommandOutput, Cause.TimeoutException | SdkError | BadRequestError | ConflictError | ForbiddenError | InternalServerError | UnauthorizedError>;
16
- /**
17
- * @see {@link CreateConfigurationCommand}
18
- */
19
- createConfiguration(args: CreateConfigurationCommandInput, options?: HttpHandlerOptions): Effect.Effect<CreateConfigurationCommandOutput, Cause.TimeoutException | SdkError | BadRequestError | ConflictError | ForbiddenError | InternalServerError>;
20
- /**
21
- * @see {@link CreateTagsCommand}
22
- */
23
- createTags(args: CreateTagsCommandInput, options?: HttpHandlerOptions): Effect.Effect<CreateTagsCommandOutput, Cause.TimeoutException | SdkError | BadRequestError | ForbiddenError | InternalServerError | NotFoundError>;
24
- /**
25
- * @see {@link CreateUserCommand}
26
- */
27
- createUser(args: CreateUserCommandInput, options?: HttpHandlerOptions): Effect.Effect<CreateUserCommandOutput, Cause.TimeoutException | SdkError | BadRequestError | ConflictError | ForbiddenError | InternalServerError | NotFoundError>;
28
- /**
29
- * @see {@link DeleteBrokerCommand}
30
- */
31
- deleteBroker(args: DeleteBrokerCommandInput, options?: HttpHandlerOptions): Effect.Effect<DeleteBrokerCommandOutput, Cause.TimeoutException | SdkError | BadRequestError | ForbiddenError | InternalServerError | NotFoundError>;
32
- /**
33
- * @see {@link DeleteConfigurationCommand}
34
- */
35
- deleteConfiguration(args: DeleteConfigurationCommandInput, options?: HttpHandlerOptions): Effect.Effect<DeleteConfigurationCommandOutput, Cause.TimeoutException | SdkError | BadRequestError | ConflictError | ForbiddenError | InternalServerError | NotFoundError>;
36
- /**
37
- * @see {@link DeleteTagsCommand}
38
- */
39
- deleteTags(args: DeleteTagsCommandInput, options?: HttpHandlerOptions): Effect.Effect<DeleteTagsCommandOutput, Cause.TimeoutException | SdkError | BadRequestError | ForbiddenError | InternalServerError | NotFoundError>;
40
- /**
41
- * @see {@link DeleteUserCommand}
42
- */
43
- deleteUser(args: DeleteUserCommandInput, options?: HttpHandlerOptions): Effect.Effect<DeleteUserCommandOutput, Cause.TimeoutException | SdkError | BadRequestError | ForbiddenError | InternalServerError | NotFoundError>;
44
- /**
45
- * @see {@link DescribeBrokerCommand}
46
- */
47
- describeBroker(args: DescribeBrokerCommandInput, options?: HttpHandlerOptions): Effect.Effect<DescribeBrokerCommandOutput, Cause.TimeoutException | SdkError | BadRequestError | ForbiddenError | InternalServerError | NotFoundError>;
48
- /**
49
- * @see {@link DescribeBrokerEngineTypesCommand}
50
- */
51
- describeBrokerEngineTypes(args: DescribeBrokerEngineTypesCommandInput, options?: HttpHandlerOptions): Effect.Effect<DescribeBrokerEngineTypesCommandOutput, Cause.TimeoutException | SdkError | BadRequestError | ForbiddenError | InternalServerError>;
52
- /**
53
- * @see {@link DescribeBrokerInstanceOptionsCommand}
54
- */
55
- describeBrokerInstanceOptions(args: DescribeBrokerInstanceOptionsCommandInput, options?: HttpHandlerOptions): Effect.Effect<DescribeBrokerInstanceOptionsCommandOutput, Cause.TimeoutException | SdkError | BadRequestError | ForbiddenError | InternalServerError>;
56
- /**
57
- * @see {@link DescribeConfigurationCommand}
58
- */
59
- describeConfiguration(args: DescribeConfigurationCommandInput, options?: HttpHandlerOptions): Effect.Effect<DescribeConfigurationCommandOutput, Cause.TimeoutException | SdkError | BadRequestError | ForbiddenError | InternalServerError | NotFoundError>;
60
- /**
61
- * @see {@link DescribeConfigurationRevisionCommand}
62
- */
63
- describeConfigurationRevision(args: DescribeConfigurationRevisionCommandInput, options?: HttpHandlerOptions): Effect.Effect<DescribeConfigurationRevisionCommandOutput, Cause.TimeoutException | SdkError | BadRequestError | ForbiddenError | InternalServerError | NotFoundError>;
64
- /**
65
- * @see {@link DescribeUserCommand}
66
- */
67
- describeUser(args: DescribeUserCommandInput, options?: HttpHandlerOptions): Effect.Effect<DescribeUserCommandOutput, Cause.TimeoutException | SdkError | BadRequestError | ForbiddenError | InternalServerError | NotFoundError>;
68
- /**
69
- * @see {@link ListBrokersCommand}
70
- */
71
- listBrokers(args: ListBrokersCommandInput, options?: HttpHandlerOptions): Effect.Effect<ListBrokersCommandOutput, Cause.TimeoutException | SdkError | BadRequestError | ForbiddenError | InternalServerError>;
72
- /**
73
- * @see {@link ListConfigurationRevisionsCommand}
74
- */
75
- listConfigurationRevisions(args: ListConfigurationRevisionsCommandInput, options?: HttpHandlerOptions): Effect.Effect<ListConfigurationRevisionsCommandOutput, Cause.TimeoutException | SdkError | BadRequestError | ForbiddenError | InternalServerError | NotFoundError>;
76
- /**
77
- * @see {@link ListConfigurationsCommand}
78
- */
79
- listConfigurations(args: ListConfigurationsCommandInput, options?: HttpHandlerOptions): Effect.Effect<ListConfigurationsCommandOutput, Cause.TimeoutException | SdkError | BadRequestError | ForbiddenError | InternalServerError>;
80
- /**
81
- * @see {@link ListTagsCommand}
82
- */
83
- listTags(args: ListTagsCommandInput, options?: HttpHandlerOptions): Effect.Effect<ListTagsCommandOutput, Cause.TimeoutException | SdkError | BadRequestError | ForbiddenError | InternalServerError | NotFoundError>;
84
- /**
85
- * @see {@link ListUsersCommand}
86
- */
87
- listUsers(args: ListUsersCommandInput, options?: HttpHandlerOptions): Effect.Effect<ListUsersCommandOutput, Cause.TimeoutException | SdkError | BadRequestError | ForbiddenError | InternalServerError | NotFoundError>;
88
- /**
89
- * @see {@link PromoteCommand}
90
- */
91
- promote(args: PromoteCommandInput, options?: HttpHandlerOptions): Effect.Effect<PromoteCommandOutput, Cause.TimeoutException | SdkError | BadRequestError | ForbiddenError | InternalServerError | NotFoundError>;
92
- /**
93
- * @see {@link RebootBrokerCommand}
94
- */
95
- rebootBroker(args: RebootBrokerCommandInput, options?: HttpHandlerOptions): Effect.Effect<RebootBrokerCommandOutput, Cause.TimeoutException | SdkError | BadRequestError | ForbiddenError | InternalServerError | NotFoundError>;
96
- /**
97
- * @see {@link UpdateBrokerCommand}
98
- */
99
- updateBroker(args: UpdateBrokerCommandInput, options?: HttpHandlerOptions): Effect.Effect<UpdateBrokerCommandOutput, Cause.TimeoutException | SdkError | BadRequestError | ConflictError | ForbiddenError | InternalServerError | NotFoundError>;
100
- /**
101
- * @see {@link UpdateConfigurationCommand}
102
- */
103
- updateConfiguration(args: UpdateConfigurationCommandInput, options?: HttpHandlerOptions): Effect.Effect<UpdateConfigurationCommandOutput, Cause.TimeoutException | SdkError | BadRequestError | ConflictError | ForbiddenError | InternalServerError | NotFoundError>;
104
- /**
105
- * @see {@link UpdateUserCommand}
106
- */
107
- updateUser(args: UpdateUserCommandInput, options?: HttpHandlerOptions): Effect.Effect<UpdateUserCommandOutput, Cause.TimeoutException | SdkError | BadRequestError | ConflictError | ForbiddenError | InternalServerError | NotFoundError>;
108
- }
109
- /**
110
- * @since 1.0.0
111
- * @category constructors
112
- */
113
- export declare const makeMqService: Effect.Effect<MqService$, never, Instance.MqClientInstance>;
114
- declare const MqService_base: import("effect/Context").TagClass<MqService, "@effect-aws/client-mq/MqService", MqService$> & Effect.Tag.Proxy<MqService, MqService$> & {
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
- };
117
- /**
118
- * @since 1.0.0
119
- * @category models
120
- */
121
- export declare class MqService extends MqService_base {
122
- static readonly defaultLayer: Layer.Layer<MqService, never, never>;
123
- static readonly layer: (config: MqService.Config) => Layer.Layer<MqService, never, never>;
124
- static readonly baseLayer: (evaluate: (defaultConfig: MqClientConfig) => MqClient) => Layer.Layer<MqService, never, never>;
125
- }
126
- /**
127
- * @since 1.0.0
128
- */
129
- export declare namespace MqService {
130
- /**
131
- * @since 1.0.0
132
- */
133
- interface Config extends Omit<MqClientConfig, "logger"> {
134
- readonly logger?: ServiceLogger.ServiceLoggerConstructorProps | true;
135
- }
136
- /**
137
- * @since 1.0.0
138
- */
139
- type Type = MqService$;
140
- }
141
- export {};
142
- //# sourceMappingURL=MqService.d.ts.map
@@ -1 +0,0 @@
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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ACf,aAAa,GACb,cAAc,GACd,mBAAmB,GACnB,aAAa,CAChB,CAAC;IAEF;;OAEG;IACH,mBAAmB,CACjB,IAAI,EAAE,+BAA+B,EACrC,OAAO,CAAC,EAAE,kBAAkB,GAC3B,MAAM,CAAC,MAAM,CACd,gCAAgC,EAC9B,KAAK,CAAC,gBAAgB,GACtB,QAAQ,GACR,eAAe,GACf,aAAa,GACb,cAAc,GACd,mBAAmB,GACnB,aAAa,CAChB,CAAC;IAEF;;OAEG;IACH,UAAU,CACR,IAAI,EAAE,sBAAsB,EAC5B,OAAO,CAAC,EAAE,kBAAkB,GAC3B,MAAM,CAAC,MAAM,CACd,uBAAuB,EACrB,KAAK,CAAC,gBAAgB,GACtB,QAAQ,GACR,eAAe,GACf,aAAa,GACb,cAAc,GACd,mBAAmB,GACnB,aAAa,CAChB,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;IAED;;OAEG;IACH,KAAY,IAAI,GAAG,UAAU,CAAC;CAC/B"}
@@ -1,83 +0,0 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
- Object.defineProperty(o, "default", { enumerable: true, value: v });
15
- }) : function(o, v) {
16
- o["default"] = v;
17
- });
18
- var __importStar = (this && this.__importStar) || function (mod) {
19
- if (mod && mod.__esModule) return mod;
20
- var result = {};
21
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
- __setModuleDefault(result, mod);
23
- return result;
24
- };
25
- Object.defineProperty(exports, "__esModule", { value: true });
26
- exports.MqService = exports.makeMqService = void 0;
27
- /**
28
- * @since 1.0.0
29
- */
30
- const client_mq_1 = require("@aws-sdk/client-mq");
31
- const commons_1 = require("@effect-aws/commons");
32
- const effect_1 = require("effect");
33
- const Errors_js_1 = require("./Errors.js");
34
- const Instance = __importStar(require("./MqClientInstance.js"));
35
- const MqServiceConfig = __importStar(require("./MqServiceConfig.js"));
36
- const commands = {
37
- CreateBrokerCommand: client_mq_1.CreateBrokerCommand,
38
- CreateConfigurationCommand: client_mq_1.CreateConfigurationCommand,
39
- CreateTagsCommand: client_mq_1.CreateTagsCommand,
40
- CreateUserCommand: client_mq_1.CreateUserCommand,
41
- DeleteBrokerCommand: client_mq_1.DeleteBrokerCommand,
42
- DeleteConfigurationCommand: client_mq_1.DeleteConfigurationCommand,
43
- DeleteTagsCommand: client_mq_1.DeleteTagsCommand,
44
- DeleteUserCommand: client_mq_1.DeleteUserCommand,
45
- DescribeBrokerCommand: client_mq_1.DescribeBrokerCommand,
46
- DescribeBrokerEngineTypesCommand: client_mq_1.DescribeBrokerEngineTypesCommand,
47
- DescribeBrokerInstanceOptionsCommand: client_mq_1.DescribeBrokerInstanceOptionsCommand,
48
- DescribeConfigurationCommand: client_mq_1.DescribeConfigurationCommand,
49
- DescribeConfigurationRevisionCommand: client_mq_1.DescribeConfigurationRevisionCommand,
50
- DescribeUserCommand: client_mq_1.DescribeUserCommand,
51
- ListBrokersCommand: client_mq_1.ListBrokersCommand,
52
- ListConfigurationRevisionsCommand: client_mq_1.ListConfigurationRevisionsCommand,
53
- ListConfigurationsCommand: client_mq_1.ListConfigurationsCommand,
54
- ListTagsCommand: client_mq_1.ListTagsCommand,
55
- ListUsersCommand: client_mq_1.ListUsersCommand,
56
- PromoteCommand: client_mq_1.PromoteCommand,
57
- RebootBrokerCommand: client_mq_1.RebootBrokerCommand,
58
- UpdateBrokerCommand: client_mq_1.UpdateBrokerCommand,
59
- UpdateConfigurationCommand: client_mq_1.UpdateConfigurationCommand,
60
- UpdateUserCommand: client_mq_1.UpdateUserCommand,
61
- };
62
- /**
63
- * @since 1.0.0
64
- * @category constructors
65
- */
66
- exports.makeMqService = effect_1.Effect.gen(function* () {
67
- const client = yield* Instance.MqClientInstance;
68
- return yield* commons_1.Service.fromClientAndCommands(client, commands, {
69
- errorTags: Errors_js_1.AllServiceErrors,
70
- resolveClientConfig: MqServiceConfig.toMqClientConfig,
71
- });
72
- });
73
- /**
74
- * @since 1.0.0
75
- * @category models
76
- */
77
- class MqService extends effect_1.Effect.Tag("@effect-aws/client-mq/MqService")() {
78
- static defaultLayer = effect_1.Layer.effect(this, exports.makeMqService).pipe(effect_1.Layer.provide(Instance.layer));
79
- static layer = (config) => effect_1.Layer.effect(this, exports.makeMqService).pipe(effect_1.Layer.provide(Instance.layer), effect_1.Layer.provide(MqServiceConfig.setMqServiceConfig(config)));
80
- static baseLayer = (evaluate) => effect_1.Layer.effect(this, exports.makeMqService).pipe(effect_1.Layer.provide(effect_1.Layer.effect(Instance.MqClientInstance, effect_1.Effect.map(MqServiceConfig.toMqClientConfig, evaluate))));
81
- }
82
- exports.MqService = MqService;
83
- //# sourceMappingURL=MqService.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"MqService.js","sourceRoot":"","sources":["../../src/MqService.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;GAEG;AACH,kDA2E4B;AAE5B,iDAA8C;AAE9C,mCAAuC;AAUvC,2CAA+C;AAC/C,gEAAkD;AAClD,sEAAwD;AAExD,MAAM,QAAQ,GAAG;IACf,mBAAmB,EAAnB,+BAAmB;IACnB,0BAA0B,EAA1B,sCAA0B;IAC1B,iBAAiB,EAAjB,6BAAiB;IACjB,iBAAiB,EAAjB,6BAAiB;IACjB,mBAAmB,EAAnB,+BAAmB;IACnB,0BAA0B,EAA1B,sCAA0B;IAC1B,iBAAiB,EAAjB,6BAAiB;IACjB,iBAAiB,EAAjB,6BAAiB;IACjB,qBAAqB,EAArB,iCAAqB;IACrB,gCAAgC,EAAhC,4CAAgC;IAChC,oCAAoC,EAApC,gDAAoC;IACpC,4BAA4B,EAA5B,wCAA4B;IAC5B,oCAAoC,EAApC,gDAAoC;IACpC,mBAAmB,EAAnB,+BAAmB;IACnB,kBAAkB,EAAlB,8BAAkB;IAClB,iCAAiC,EAAjC,6CAAiC;IACjC,yBAAyB,EAAzB,qCAAyB;IACzB,eAAe,EAAf,2BAAe;IACf,gBAAgB,EAAhB,4BAAgB;IAChB,cAAc,EAAd,0BAAc;IACd,mBAAmB,EAAnB,+BAAmB;IACnB,mBAAmB,EAAnB,+BAAmB;IACnB,0BAA0B,EAA1B,sCAA0B;IAC1B,iBAAiB,EAAjB,6BAAiB;CAClB,CAAC;AAkTF;;;GAGG;AACU,QAAA,aAAa,GAAG,eAAM,CAAC,GAAG,CAAC,QAAQ,CAAC;IAC/C,MAAM,MAAM,GAAG,KAAK,CAAC,CAAC,QAAQ,CAAC,gBAAgB,CAAC;IAEhD,OAAO,KAAK,CAAC,CAAC,iBAAO,CAAC,qBAAqB,CACzC,MAAM,EACN,QAAQ,EACR;QACE,SAAS,EAAE,4B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