@effect-aws/client-api-gateway-management-api 1.9.5 → 1.10.2
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/dist/cjs/ApiGatewayManagementApiService.d.ts +7 -6
- package/dist/cjs/ApiGatewayManagementApiService.d.ts.map +1 -1
- package/dist/cjs/ApiGatewayManagementApiService.js +1 -1
- package/dist/cjs/ApiGatewayManagementApiService.js.map +1 -1
- package/dist/cjs/Errors.d.ts +3 -3
- package/dist/cjs/Errors.d.ts.map +1 -1
- package/dist/cjs/Errors.js +1 -3
- package/dist/cjs/Errors.js.map +1 -1
- package/dist/dts/ApiGatewayManagementApiService.d.ts +7 -6
- package/dist/dts/ApiGatewayManagementApiService.d.ts.map +1 -1
- package/dist/dts/Errors.d.ts +3 -3
- package/dist/dts/Errors.d.ts.map +1 -1
- package/dist/esm/ApiGatewayManagementApiService.js +1 -1
- package/dist/esm/ApiGatewayManagementApiService.js.map +1 -1
- package/dist/esm/Errors.js +0 -2
- package/dist/esm/Errors.js.map +1 -1
- package/package.json +2 -2
- package/src/ApiGatewayManagementApiService.ts +7 -6
- package/src/Errors.ts +1 -4
|
@@ -2,24 +2,25 @@
|
|
|
2
2
|
* @since 1.0.0
|
|
3
3
|
*/
|
|
4
4
|
import { type ApiGatewayManagementApiClient, type ApiGatewayManagementApiClientConfig, type DeleteConnectionCommandInput, type DeleteConnectionCommandOutput, type GetConnectionCommandInput, type GetConnectionCommandOutput, type PostToConnectionCommandInput, type PostToConnectionCommandOutput } from "@aws-sdk/client-apigatewaymanagementapi";
|
|
5
|
-
import type { HttpHandlerOptions,
|
|
5
|
+
import type { HttpHandlerOptions, ServiceLogger } from "@effect-aws/commons";
|
|
6
|
+
import type { Cause } from "effect";
|
|
6
7
|
import { Effect, Layer } from "effect";
|
|
7
8
|
import * as Instance from "./ApiGatewayManagementApiClientInstance.js";
|
|
8
|
-
import type { ForbiddenError, GoneError, LimitExceededError, PayloadTooLargeError } from "./Errors.js";
|
|
9
|
+
import type { ForbiddenError, GoneError, LimitExceededError, PayloadTooLargeError, SdkError } from "./Errors.js";
|
|
9
10
|
interface ApiGatewayManagementApiService$ {
|
|
10
11
|
readonly _: unique symbol;
|
|
11
12
|
/**
|
|
12
13
|
* @see {@link DeleteConnectionCommand}
|
|
13
14
|
*/
|
|
14
|
-
deleteConnection(args: DeleteConnectionCommandInput, options?: HttpHandlerOptions): Effect.Effect<DeleteConnectionCommandOutput, SdkError | ForbiddenError | GoneError | LimitExceededError>;
|
|
15
|
+
deleteConnection(args: DeleteConnectionCommandInput, options?: HttpHandlerOptions): Effect.Effect<DeleteConnectionCommandOutput, Cause.TimeoutException | SdkError | ForbiddenError | GoneError | LimitExceededError>;
|
|
15
16
|
/**
|
|
16
17
|
* @see {@link GetConnectionCommand}
|
|
17
18
|
*/
|
|
18
|
-
getConnection(args: GetConnectionCommandInput, options?: HttpHandlerOptions): Effect.Effect<GetConnectionCommandOutput, SdkError | ForbiddenError | GoneError | LimitExceededError>;
|
|
19
|
+
getConnection(args: GetConnectionCommandInput, options?: HttpHandlerOptions): Effect.Effect<GetConnectionCommandOutput, Cause.TimeoutException | SdkError | ForbiddenError | GoneError | LimitExceededError>;
|
|
19
20
|
/**
|
|
20
21
|
* @see {@link PostToConnectionCommand}
|
|
21
22
|
*/
|
|
22
|
-
postToConnection(args: PostToConnectionCommandInput, options?: HttpHandlerOptions): Effect.Effect<PostToConnectionCommandOutput, SdkError | ForbiddenError | GoneError | LimitExceededError | PayloadTooLargeError>;
|
|
23
|
+
postToConnection(args: PostToConnectionCommandInput, options?: HttpHandlerOptions): Effect.Effect<PostToConnectionCommandOutput, Cause.TimeoutException | SdkError | ForbiddenError | GoneError | LimitExceededError | PayloadTooLargeError>;
|
|
23
24
|
}
|
|
24
25
|
/**
|
|
25
26
|
* @since 1.0.0
|
|
@@ -27,7 +28,7 @@ interface ApiGatewayManagementApiService$ {
|
|
|
27
28
|
*/
|
|
28
29
|
export declare const makeApiGatewayManagementApiService: Effect.Effect<ApiGatewayManagementApiService$, never, Instance.ApiGatewayManagementApiClientInstance>;
|
|
29
30
|
declare const ApiGatewayManagementApiService_base: import("effect/Context").TagClass<ApiGatewayManagementApiService, "@effect-aws/client-api-gateway-management-api/ApiGatewayManagementApiService", ApiGatewayManagementApiService$> & Effect.Tag.Proxy<ApiGatewayManagementApiService, ApiGatewayManagementApiService$> & {
|
|
30
|
-
use: <X>(body: (_: ApiGatewayManagementApiService$) => X) => [X] extends [Effect.Effect<infer A, infer E, infer R>] ? Effect.Effect<A, E, ApiGatewayManagementApiService | R> : [X] extends [PromiseLike<infer A_1>] ? Effect.Effect<A_1,
|
|
31
|
+
use: <X>(body: (_: ApiGatewayManagementApiService$) => X) => [X] extends [Effect.Effect<infer A, infer E, infer R>] ? Effect.Effect<A, E, ApiGatewayManagementApiService | R> : [X] extends [PromiseLike<infer A_1>] ? Effect.Effect<A_1, Cause.UnknownException, ApiGatewayManagementApiService> : Effect.Effect<X, never, ApiGatewayManagementApiService>;
|
|
31
32
|
};
|
|
32
33
|
/**
|
|
33
34
|
* @since 1.0.0
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ApiGatewayManagementApiService.d.ts","sourceRoot":"","sources":["../../src/ApiGatewayManagementApiService.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EACL,KAAK,6BAA6B,EAClC,KAAK,mCAAmC,EAExC,KAAK,4BAA4B,EACjC,KAAK,6BAA6B,EAElC,KAAK,yBAAyB,EAC9B,KAAK,0BAA0B,EAE/B,KAAK,4BAA4B,EACjC,KAAK,6BAA6B,EACnC,MAAM,yCAAyC,CAAC;AACjD,OAAO,KAAK,EAAE,kBAAkB,EAAE,
|
|
1
|
+
{"version":3,"file":"ApiGatewayManagementApiService.d.ts","sourceRoot":"","sources":["../../src/ApiGatewayManagementApiService.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EACL,KAAK,6BAA6B,EAClC,KAAK,mCAAm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AED;;;GAGG;AACH,eAAO,MAAM,kCAAkC,uGAW7C,CAAC;;;;AAEH;;;GAGG;AACH,qBAAa,8BACX,SAAQ,mCAGL;IAEH,MAAM,CAAC,QAAQ,CAAC,YAAY,4DAE1B;IACF,MAAM,CAAC,QAAQ,CAAC,KAAK,WAAY,+BAA+B,MAAM,+DAIlE;IACJ,MAAM,CAAC,QAAQ,CAAC,SAAS,aACb,CAAC,aAAa,EAAE,mCAAmC,KAAK,6BAA6B,+DAS7F;CACL;AAED;;GAEG;AACH,MAAM,CAAC,OAAO,WAAW,8BAA8B,CAAC;IACtD;;OAEG;IACH,UAAiB,MAAO,SAAQ,IAAI,CAAC,mCAAmC,EAAE,QAAQ,CAAC;QACjF,QAAQ,CAAC,MAAM,CAAC,EAAE,aAAa,CAAC,6BAA6B,GAAG,IAAI,CAAC;KACtE;CACF"}
|
|
@@ -44,7 +44,7 @@ const commands = {
|
|
|
44
44
|
*/
|
|
45
45
|
exports.makeApiGatewayManagementApiService = effect_1.Effect.gen(function* () {
|
|
46
46
|
const client = yield* Instance.ApiGatewayManagementApiClientInstance;
|
|
47
|
-
return commons_1.Service.fromClientAndCommands(client, commands, {
|
|
47
|
+
return yield* commons_1.Service.fromClientAndCommands(client, commands, {
|
|
48
48
|
errorTags: Errors_js_1.AllServiceErrors,
|
|
49
49
|
resolveClientConfig: ApiGatewayManagementApiServiceConfig.toApiGatewayManagementApiClientConfig,
|
|
50
50
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ApiGatewayManagementApiService.js","sourceRoot":"","sources":["../../src/ApiGatewayManagementApiService.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;GAEG;AACH,4FAYiD;AAEjD,iDAA8C;
|
|
1
|
+
{"version":3,"file":"ApiGatewayManagementApiService.js","sourceRoot":"","sources":["../../src/ApiGatewayManagementApiService.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;GAEG;A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MAAM,CACV,QAAQ,CAAC,qCAAqC,EAC9C,eAAM,CAAC,GAAG,CAAC,oCAAoC,CAAC,qCAAqC,EAAE,QAAQ,CAAC,CACjG,CACF,CACF,CAAC;;AAxBN,wEAyBC"}
|
package/dist/cjs/Errors.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import type { ForbiddenException, GoneException, LimitExceededException, PayloadTooLargeException } from "@aws-sdk/client-apigatewaymanagementapi";
|
|
2
2
|
import type { TaggedException } from "@effect-aws/commons";
|
|
3
|
-
import { SdkError as CommonSdkError } from "@effect-aws/commons";
|
|
4
3
|
export declare const AllServiceErrors: readonly ["ForbiddenException", "GoneException", "LimitExceededException", "PayloadTooLargeException"];
|
|
5
4
|
export type ForbiddenError = TaggedException<ForbiddenException>;
|
|
6
5
|
export type GoneError = TaggedException<GoneException>;
|
|
7
6
|
export type LimitExceededError = TaggedException<LimitExceededException>;
|
|
8
7
|
export type PayloadTooLargeError = TaggedException<PayloadTooLargeException>;
|
|
9
|
-
export type SdkError =
|
|
10
|
-
|
|
8
|
+
export type SdkError = TaggedException<Error & {
|
|
9
|
+
name: "SdkError";
|
|
10
|
+
}>;
|
|
11
11
|
//# sourceMappingURL=Errors.d.ts.map
|
package/dist/cjs/Errors.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Errors.d.ts","sourceRoot":"","sources":["../../src/Errors.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,kBAAkB,EAClB,aAAa,EACb,sBAAsB,EACtB,wBAAwB,EACzB,MAAM,yCAAyC,CAAC;AACjD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;
|
|
1
|
+
{"version":3,"file":"Errors.d.ts","sourceRoot":"","sources":["../../src/Errors.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,kBAAkB,EAClB,aAAa,EACb,sBAAsB,EACtB,wBAAwB,EACzB,MAAM,yCAAyC,CAAC;AACjD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAE3D,eAAO,MAAM,gBAAgB,wGAKnB,CAAC;AAEX,MAAM,MAAM,cAAc,GAAG,eAAe,CAAC,kBAAkB,CAAC,CAAC;AACjE,MAAM,MAAM,SAAS,GAAG,eAAe,CAAC,aAAa,CAAC,CAAC;AACvD,MAAM,MAAM,kBAAkB,GAAG,eAAe,CAAC,sBAAsB,CAAC,CAAC;AACzE,MAAM,MAAM,oBAAoB,GAAG,eAAe,CAAC,wBAAwB,CAAC,CAAC;AAC7E,MAAM,MAAM,QAAQ,GAAG,eAAe,CAAC,KAAK,GAAG;IAAE,IAAI,EAAE,UAAU,CAAA;CAAE,CAAC,CAAC"}
|
package/dist/cjs/Errors.js
CHANGED
|
@@ -1,12 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
const commons_1 = require("@effect-aws/commons");
|
|
3
|
+
exports.AllServiceErrors = void 0;
|
|
5
4
|
exports.AllServiceErrors = [
|
|
6
5
|
"ForbiddenException",
|
|
7
6
|
"GoneException",
|
|
8
7
|
"LimitExceededException",
|
|
9
8
|
"PayloadTooLargeException",
|
|
10
9
|
];
|
|
11
|
-
exports.SdkError = commons_1.SdkError;
|
|
12
10
|
//# sourceMappingURL=Errors.js.map
|
package/dist/cjs/Errors.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Errors.js","sourceRoot":"","sources":["../../src/Errors.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"Errors.js","sourceRoot":"","sources":["../../src/Errors.ts"],"names":[],"mappings":";;;AAQa,QAAA,gBAAgB,GAAG;IAC9B,oBAAoB;IACpB,eAAe;IACf,wBAAwB;IACxB,0BAA0B;CAClB,CAAC"}
|
|
@@ -2,24 +2,25 @@
|
|
|
2
2
|
* @since 1.0.0
|
|
3
3
|
*/
|
|
4
4
|
import { type ApiGatewayManagementApiClient, type ApiGatewayManagementApiClientConfig, type DeleteConnectionCommandInput, type DeleteConnectionCommandOutput, type GetConnectionCommandInput, type GetConnectionCommandOutput, type PostToConnectionCommandInput, type PostToConnectionCommandOutput } from "@aws-sdk/client-apigatewaymanagementapi";
|
|
5
|
-
import type { HttpHandlerOptions,
|
|
5
|
+
import type { HttpHandlerOptions, ServiceLogger } from "@effect-aws/commons";
|
|
6
|
+
import type { Cause } from "effect";
|
|
6
7
|
import { Effect, Layer } from "effect";
|
|
7
8
|
import * as Instance from "./ApiGatewayManagementApiClientInstance.js";
|
|
8
|
-
import type { ForbiddenError, GoneError, LimitExceededError, PayloadTooLargeError } from "./Errors.js";
|
|
9
|
+
import type { ForbiddenError, GoneError, LimitExceededError, PayloadTooLargeError, SdkError } from "./Errors.js";
|
|
9
10
|
interface ApiGatewayManagementApiService$ {
|
|
10
11
|
readonly _: unique symbol;
|
|
11
12
|
/**
|
|
12
13
|
* @see {@link DeleteConnectionCommand}
|
|
13
14
|
*/
|
|
14
|
-
deleteConnection(args: DeleteConnectionCommandInput, options?: HttpHandlerOptions): Effect.Effect<DeleteConnectionCommandOutput, SdkError | ForbiddenError | GoneError | LimitExceededError>;
|
|
15
|
+
deleteConnection(args: DeleteConnectionCommandInput, options?: HttpHandlerOptions): Effect.Effect<DeleteConnectionCommandOutput, Cause.TimeoutException | SdkError | ForbiddenError | GoneError | LimitExceededError>;
|
|
15
16
|
/**
|
|
16
17
|
* @see {@link GetConnectionCommand}
|
|
17
18
|
*/
|
|
18
|
-
getConnection(args: GetConnectionCommandInput, options?: HttpHandlerOptions): Effect.Effect<GetConnectionCommandOutput, SdkError | ForbiddenError | GoneError | LimitExceededError>;
|
|
19
|
+
getConnection(args: GetConnectionCommandInput, options?: HttpHandlerOptions): Effect.Effect<GetConnectionCommandOutput, Cause.TimeoutException | SdkError | ForbiddenError | GoneError | LimitExceededError>;
|
|
19
20
|
/**
|
|
20
21
|
* @see {@link PostToConnectionCommand}
|
|
21
22
|
*/
|
|
22
|
-
postToConnection(args: PostToConnectionCommandInput, options?: HttpHandlerOptions): Effect.Effect<PostToConnectionCommandOutput, SdkError | ForbiddenError | GoneError | LimitExceededError | PayloadTooLargeError>;
|
|
23
|
+
postToConnection(args: PostToConnectionCommandInput, options?: HttpHandlerOptions): Effect.Effect<PostToConnectionCommandOutput, Cause.TimeoutException | SdkError | ForbiddenError | GoneError | LimitExceededError | PayloadTooLargeError>;
|
|
23
24
|
}
|
|
24
25
|
/**
|
|
25
26
|
* @since 1.0.0
|
|
@@ -27,7 +28,7 @@ interface ApiGatewayManagementApiService$ {
|
|
|
27
28
|
*/
|
|
28
29
|
export declare const makeApiGatewayManagementApiService: Effect.Effect<ApiGatewayManagementApiService$, never, Instance.ApiGatewayManagementApiClientInstance>;
|
|
29
30
|
declare const ApiGatewayManagementApiService_base: import("effect/Context").TagClass<ApiGatewayManagementApiService, "@effect-aws/client-api-gateway-management-api/ApiGatewayManagementApiService", ApiGatewayManagementApiService$> & Effect.Tag.Proxy<ApiGatewayManagementApiService, ApiGatewayManagementApiService$> & {
|
|
30
|
-
use: <X>(body: (_: ApiGatewayManagementApiService$) => X) => [X] extends [Effect.Effect<infer A, infer E, infer R>] ? Effect.Effect<A, E, ApiGatewayManagementApiService | R> : [X] extends [PromiseLike<infer A_1>] ? Effect.Effect<A_1,
|
|
31
|
+
use: <X>(body: (_: ApiGatewayManagementApiService$) => X) => [X] extends [Effect.Effect<infer A, infer E, infer R>] ? Effect.Effect<A, E, ApiGatewayManagementApiService | R> : [X] extends [PromiseLike<infer A_1>] ? Effect.Effect<A_1, Cause.UnknownException, ApiGatewayManagementApiService> : Effect.Effect<X, never, ApiGatewayManagementApiService>;
|
|
31
32
|
};
|
|
32
33
|
/**
|
|
33
34
|
* @since 1.0.0
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ApiGatewayManagementApiService.d.ts","sourceRoot":"","sources":["../../src/ApiGatewayManagementApiService.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EACL,KAAK,6BAA6B,EAClC,KAAK,mCAAmC,EAExC,KAAK,4BAA4B,EACjC,KAAK,6BAA6B,EAElC,KAAK,yBAAyB,EAC9B,KAAK,0BAA0B,EAE/B,KAAK,4BAA4B,EACjC,KAAK,6BAA6B,EACnC,MAAM,yCAAyC,CAAC;AACjD,OAAO,KAAK,EAAE,kBAAkB,EAAE,
|
|
1
|
+
{"version":3,"file":"ApiGatewayManagementApiService.d.ts","sourceRoot":"","sources":["../../src/ApiGatewayManagementApiService.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EACL,KAAK,6BAA6B,EAClC,KAAK,mCAAmC,EAExC,KAAK,4BAA4B,EACjC,KAAK,6BAA6B,EAElC,KAAK,yBAAyB,EAC9B,KAAK,0BAA0B,EAE/B,KAAK,4BAA4B,EACjC,KAAK,6BAA6B,EACnC,MAAM,yCAAyC,CAAC;AACjD,OAAO,KAAK,EAAE,kBAAkB,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAE7E,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,QAAQ,CAAC;AACpC,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,QAAQ,CAAC;AACvC,OAAO,KAAK,QAAQ,MAAM,4CAA4C,CAAC;AAEvE,OAAO,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,kBAAkB,EAAE,oBAAoB,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AASjH,UAAU,+BAA+B;IACvC,QAAQ,CAAC,CAAC,EAAE,OAAO,MAAM,CAAC;IAE1B;;OAEG;IACH,gBAAgB,CACd,IAAI,EAAE,4BAA4B,EAClC,OAAO,CAAC,EAAE,kBAAkB,GAC3B,MAAM,CAAC,MAAM,CACd,6BAA6B,EAC7B,KAAK,CAAC,gBAAgB,GAAG,QAAQ,GAAG,cAAc,GAAG,SAAS,GAAG,kBAAkB,CACpF,CAAC;IAEF;;OAEG;IACH,aAAa,CACX,IAAI,EAAE,yBAAyB,EAC/B,OAAO,CAAC,EAAE,kBAAkB,GAC3B,MAAM,CAAC,MAAM,CACd,0BAA0B,EAC1B,KAAK,CAAC,gBAAgB,GAAG,QAAQ,GAAG,cAAc,GAAG,SAAS,GAAG,kBAAkB,CACpF,CAAC;IAEF;;OAEG;IACH,gBAAgB,CACd,IAAI,EAAE,4BAA4B,EAClC,OAAO,CAAC,EAAE,kBAAkB,GAC3B,MAAM,CAAC,MAAM,CACd,6BAA6B,EAC7B,KAAK,CAAC,gBAAgB,GAAG,QAAQ,GAAG,cAAc,GAAG,SAAS,GAAG,kBAAkB,GAAG,oBAAoB,CAC3G,CAAC;CACH;AAED;;;GAGG;AACH,eAAO,MAAM,kCAAkC,uGAW7C,CAAC;;;;AAEH;;;GAGG;AACH,qBAAa,8BACX,SAAQ,mCAGL;IAEH,MAAM,CAAC,QAAQ,CAAC,YAAY,4DAE1B;IACF,MAAM,CAAC,QAAQ,CAAC,KAAK,WAAY,+BAA+B,MAAM,+DAIlE;IACJ,MAAM,CAAC,QAAQ,CAAC,SAAS,aACb,CAAC,aAAa,EAAE,mCAAmC,KAAK,6BAA6B,+DAS7F;CACL;AAED;;GAEG;AACH,MAAM,CAAC,OAAO,WAAW,8BAA8B,CAAC;IACtD;;OAEG;IACH,UAAiB,MAAO,SAAQ,IAAI,CAAC,mCAAmC,EAAE,QAAQ,CAAC;QACjF,QAAQ,CAAC,MAAM,CAAC,EAAE,aAAa,CAAC,6BAA6B,GAAG,IAAI,CAAC;KACtE;CACF"}
|
package/dist/dts/Errors.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import type { ForbiddenException, GoneException, LimitExceededException, PayloadTooLargeException } from "@aws-sdk/client-apigatewaymanagementapi";
|
|
2
2
|
import type { TaggedException } from "@effect-aws/commons";
|
|
3
|
-
import { SdkError as CommonSdkError } from "@effect-aws/commons";
|
|
4
3
|
export declare const AllServiceErrors: readonly ["ForbiddenException", "GoneException", "LimitExceededException", "PayloadTooLargeException"];
|
|
5
4
|
export type ForbiddenError = TaggedException<ForbiddenException>;
|
|
6
5
|
export type GoneError = TaggedException<GoneException>;
|
|
7
6
|
export type LimitExceededError = TaggedException<LimitExceededException>;
|
|
8
7
|
export type PayloadTooLargeError = TaggedException<PayloadTooLargeException>;
|
|
9
|
-
export type SdkError =
|
|
10
|
-
|
|
8
|
+
export type SdkError = TaggedException<Error & {
|
|
9
|
+
name: "SdkError";
|
|
10
|
+
}>;
|
|
11
11
|
//# sourceMappingURL=Errors.d.ts.map
|
package/dist/dts/Errors.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Errors.d.ts","sourceRoot":"","sources":["../../src/Errors.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,kBAAkB,EAClB,aAAa,EACb,sBAAsB,EACtB,wBAAwB,EACzB,MAAM,yCAAyC,CAAC;AACjD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;
|
|
1
|
+
{"version":3,"file":"Errors.d.ts","sourceRoot":"","sources":["../../src/Errors.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,kBAAkB,EAClB,aAAa,EACb,sBAAsB,EACtB,wBAAwB,EACzB,MAAM,yCAAyC,CAAC;AACjD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAE3D,eAAO,MAAM,gBAAgB,wGAKnB,CAAC;AAEX,MAAM,MAAM,cAAc,GAAG,eAAe,CAAC,kBAAkB,CAAC,CAAC;AACjE,MAAM,MAAM,SAAS,GAAG,eAAe,CAAC,aAAa,CAAC,CAAC;AACvD,MAAM,MAAM,kBAAkB,GAAG,eAAe,CAAC,sBAAsB,CAAC,CAAC;AACzE,MAAM,MAAM,oBAAoB,GAAG,eAAe,CAAC,wBAAwB,CAAC,CAAC;AAC7E,MAAM,MAAM,QAAQ,GAAG,eAAe,CAAC,KAAK,GAAG;IAAE,IAAI,EAAE,UAAU,CAAA;CAAE,CAAC,CAAC"}
|
|
@@ -18,7 +18,7 @@ const commands = {
|
|
|
18
18
|
*/
|
|
19
19
|
export const makeApiGatewayManagementApiService = Effect.gen(function* () {
|
|
20
20
|
const client = yield* Instance.ApiGatewayManagementApiClientInstance;
|
|
21
|
-
return Service.fromClientAndCommands(client, commands, {
|
|
21
|
+
return yield* Service.fromClientAndCommands(client, commands, {
|
|
22
22
|
errorTags: AllServiceErrors,
|
|
23
23
|
resolveClientConfig: ApiGatewayManagementApiServiceConfig.toApiGatewayManagementApiClientConfig,
|
|
24
24
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ApiGatewayManagementApiService.js","sourceRoot":"","sources":["../../src/ApiGatewayManagementApiService.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAGL,uBAAuB,EAGvB,oBAAoB,EAGpB,uBAAuB,GAGxB,MAAM,yCAAyC,CAAC;AAEjD,OAAO,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;
|
|
1
|
+
{"version":3,"file":"ApiGatewayManagementApiService.js","sourceRoot":"","sources":["../../src/ApiGatewayManagementApiService.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAGL,uBAAuB,EAGvB,oBAAoB,EAGpB,uBAAuB,GAGxB,MAAM,yCAAyC,CAAC;AAEjD,OAAO,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAE9C,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,QAAQ,CAAC;AACvC,OAAO,KAAK,QAAQ,MAAM,4CAA4C,CAAC;AACvE,OAAO,KAAK,oCAAoC,MAAM,2CAA2C,CAAC;AAElG,OAAO,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAE/C,MAAM,QAAQ,GAAG;IACf,uBAAuB;IACvB,oBAAoB;IACpB,uBAAuB;CACxB,CAAC;AAuCF;;;GAGG;AACH,MAAM,CAAC,MAAM,kCAAkC,GA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ceErrors = [
|
|
3
2
|
"ForbiddenException",
|
|
4
3
|
"GoneException",
|
|
5
4
|
"LimitExceededException",
|
|
6
5
|
"PayloadTooLargeException",
|
|
7
6
|
];
|
|
8
|
-
export const SdkError = CommonSdkError;
|
|
9
7
|
//# sourceMappingURL=Errors.js.map
|
package/dist/esm/Errors.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Errors.js","sourceRoot":"","sources":["../../src/Errors.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Errors.js","sourceRoot":"","sources":["../../src/Errors.ts"],"names":[],"mappings":"AAQA,MAAM,CAAC,MAAM,gBAAgB,GAAG;IAC9B,oBAAoB;IACpB,eAAe;IACf,wBAAwB;IACxB,0BAA0B;CAClB,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@effect-aws/client-api-gateway-management-api",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.10.2",
|
|
4
4
|
"description": "Effectful AWS API Gateway Management API client",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
"homepage": "https://floydspace.github.io/effect-aws/docs/client-api-gateway-management-api",
|
|
17
17
|
"dependencies": {
|
|
18
18
|
"@aws-sdk/client-apigatewaymanagementapi": "^3",
|
|
19
|
-
"@effect-aws/commons": "^0.
|
|
19
|
+
"@effect-aws/commons": "^0.3.0"
|
|
20
20
|
},
|
|
21
21
|
"peerDependencies": {
|
|
22
22
|
"effect": ">=3.0.4 <4.0.0"
|
|
@@ -14,12 +14,13 @@ import {
|
|
|
14
14
|
type PostToConnectionCommandInput,
|
|
15
15
|
type PostToConnectionCommandOutput,
|
|
16
16
|
} from "@aws-sdk/client-apigatewaymanagementapi";
|
|
17
|
-
import type { HttpHandlerOptions,
|
|
17
|
+
import type { HttpHandlerOptions, ServiceLogger } from "@effect-aws/commons";
|
|
18
18
|
import { Service } from "@effect-aws/commons";
|
|
19
|
+
import type { Cause } from "effect";
|
|
19
20
|
import { Effect, Layer } from "effect";
|
|
20
21
|
import * as Instance from "./ApiGatewayManagementApiClientInstance.js";
|
|
21
22
|
import * as ApiGatewayManagementApiServiceConfig from "./ApiGatewayManagementApiServiceConfig.js";
|
|
22
|
-
import type { ForbiddenError, GoneError, LimitExceededError, PayloadTooLargeError } from "./Errors.js";
|
|
23
|
+
import type { ForbiddenError, GoneError, LimitExceededError, PayloadTooLargeError, SdkError } from "./Errors.js";
|
|
23
24
|
import { AllServiceErrors } from "./Errors.js";
|
|
24
25
|
|
|
25
26
|
const commands = {
|
|
@@ -39,7 +40,7 @@ interface ApiGatewayManagementApiService$ {
|
|
|
39
40
|
options?: HttpHandlerOptions,
|
|
40
41
|
): Effect.Effect<
|
|
41
42
|
DeleteConnectionCommandOutput,
|
|
42
|
-
SdkError | ForbiddenError | GoneError | LimitExceededError
|
|
43
|
+
Cause.TimeoutException | SdkError | ForbiddenError | GoneError | LimitExceededError
|
|
43
44
|
>;
|
|
44
45
|
|
|
45
46
|
/**
|
|
@@ -50,7 +51,7 @@ interface ApiGatewayManagementApiService$ {
|
|
|
50
51
|
options?: HttpHandlerOptions,
|
|
51
52
|
): Effect.Effect<
|
|
52
53
|
GetConnectionCommandOutput,
|
|
53
|
-
SdkError | ForbiddenError | GoneError | LimitExceededError
|
|
54
|
+
Cause.TimeoutException | SdkError | ForbiddenError | GoneError | LimitExceededError
|
|
54
55
|
>;
|
|
55
56
|
|
|
56
57
|
/**
|
|
@@ -61,7 +62,7 @@ interface ApiGatewayManagementApiService$ {
|
|
|
61
62
|
options?: HttpHandlerOptions,
|
|
62
63
|
): Effect.Effect<
|
|
63
64
|
PostToConnectionCommandOutput,
|
|
64
|
-
SdkError | ForbiddenError | GoneError | LimitExceededError | PayloadTooLargeError
|
|
65
|
+
Cause.TimeoutException | SdkError | ForbiddenError | GoneError | LimitExceededError | PayloadTooLargeError
|
|
65
66
|
>;
|
|
66
67
|
}
|
|
67
68
|
|
|
@@ -72,7 +73,7 @@ interface ApiGatewayManagementApiService$ {
|
|
|
72
73
|
export const makeApiGatewayManagementApiService = Effect.gen(function*() {
|
|
73
74
|
const client = yield* Instance.ApiGatewayManagementApiClientInstance;
|
|
74
75
|
|
|
75
|
-
return Service.fromClientAndCommands<ApiGatewayManagementApiService$>(
|
|
76
|
+
return yield* Service.fromClientAndCommands<ApiGatewayManagementApiService$>(
|
|
76
77
|
client,
|
|
77
78
|
commands,
|
|
78
79
|
{
|
package/src/Errors.ts
CHANGED
|
@@ -5,7 +5,6 @@ import type {
|
|
|
5
5
|
PayloadTooLargeException,
|
|
6
6
|
} from "@aws-sdk/client-apigatewaymanagementapi";
|
|
7
7
|
import type { TaggedException } from "@effect-aws/commons";
|
|
8
|
-
import { SdkError as CommonSdkError } from "@effect-aws/commons";
|
|
9
8
|
|
|
10
9
|
export const AllServiceErrors = [
|
|
11
10
|
"ForbiddenException",
|
|
@@ -18,6 +17,4 @@ export type ForbiddenError = TaggedException<ForbiddenException>;
|
|
|
18
17
|
export type GoneError = TaggedException<GoneException>;
|
|
19
18
|
export type LimitExceededError = TaggedException<LimitExceededException>;
|
|
20
19
|
export type PayloadTooLargeError = TaggedException<PayloadTooLargeException>;
|
|
21
|
-
|
|
22
|
-
export type SdkError = CommonSdkError;
|
|
23
|
-
export const SdkError = CommonSdkError;
|
|
20
|
+
export type SdkError = TaggedException<Error & { name: "SdkError" }>;
|