Skip to content

Commit bccec21

Browse files
authored
fix: 'cannot be named without a reference' error (#162)
* fix: 'cannot be named without a reference' error * test: fix s3 test
1 parent 6142ba6 commit bccec21

File tree

154 files changed

+482
-337
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

154 files changed

+482
-337
lines changed

.changeset/shy-gorillas-work.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@effect-aws/client-ec2": patch
3+
---
4+
5+
new service methods

.changeset/tall-eels-change.md

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
---
2+
"@effect-aws/client-api-gateway-management-api": patch
3+
"@effect-aws/client-cognito-identity-provider": patch
4+
"@effect-aws/client-opensearch-serverless": patch
5+
"@effect-aws/client-iot-jobs-data-plane": patch
6+
"@effect-aws/client-timestream-influxdb": patch
7+
"@effect-aws/client-cloudwatch-events": patch
8+
"@effect-aws/client-timestream-query": patch
9+
"@effect-aws/client-timestream-write": patch
10+
"@effect-aws/client-bedrock-runtime": patch
11+
"@effect-aws/client-cloudwatch-logs": patch
12+
"@effect-aws/client-iot-events-data": patch
13+
"@effect-aws/client-secrets-manager": patch
14+
"@effect-aws/client-api-gateway-v2": patch
15+
"@effect-aws/client-iot-data-plane": patch
16+
"@effect-aws/client-organizations": patch
17+
"@effect-aws/client-auto-scaling": patch
18+
"@effect-aws/client-iot-wireless": patch
19+
"@effect-aws/client-api-gateway": patch
20+
"@effect-aws/client-cloudsearch": patch
21+
"@effect-aws/client-elasticache": patch
22+
"@effect-aws/client-eventbridge": patch
23+
"@effect-aws/client-cloudtrail": patch
24+
"@effect-aws/client-cloudwatch": patch
25+
"@effect-aws/client-codedeploy": patch
26+
"@effect-aws/client-iot-events": patch
27+
"@effect-aws/client-opensearch": patch
28+
"@effect-aws/client-scheduler": patch
29+
"@effect-aws/client-dynamodb": patch
30+
"@effect-aws/client-firehose": patch
31+
"@effect-aws/client-textract": patch
32+
"@effect-aws/client-account": patch
33+
"@effect-aws/client-bedrock": patch
34+
"@effect-aws/client-kinesis": patch
35+
"@effect-aws/client-athena": patch
36+
"@effect-aws/client-lambda": patch
37+
"@effect-aws/lib-dynamodb": patch
38+
"@effect-aws/client-ec2": patch
39+
"@effect-aws/client-ecr": patch
40+
"@effect-aws/client-ecs": patch
41+
"@effect-aws/client-iam": patch
42+
"@effect-aws/client-iot": patch
43+
"@effect-aws/client-kms": patch
44+
"@effect-aws/client-rds": patch
45+
"@effect-aws/client-ses": patch
46+
"@effect-aws/client-sfn": patch
47+
"@effect-aws/client-sns": patch
48+
"@effect-aws/client-sqs": patch
49+
"@effect-aws/client-ssm": patch
50+
"@effect-aws/client-sts": patch
51+
"@effect-aws/client-mq": patch
52+
"@effect-aws/client-s3": patch
53+
---
54+
55+
Fix "cannot be named without a reference" error

packages/client-account/src/AccountService.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ import {
4747
type StartPrimaryEmailUpdateCommandInput,
4848
type StartPrimaryEmailUpdateCommandOutput,
4949
} from "@aws-sdk/client-account";
50-
import type { HttpHandlerOptions, SdkError, ServiceLogger } from "@effect-aws/commons";
50+
import type { HttpHandlerOptions, ServiceLogger } from "@effect-aws/commons";
5151
import { Service } from "@effect-aws/commons";
5252
import type { Cause } from "effect";
5353
import { Effect, Layer } from "effect";
@@ -58,6 +58,7 @@ import type {
5858
ConflictError,
5959
InternalServerError,
6060
ResourceNotFoundError,
61+
SdkError,
6162
TooManyRequestsError,
6263
ValidationError,
6364
} from "./Errors.js";

packages/client-account/src/Errors.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ import type {
77
ValidationException,
88
} from "@aws-sdk/client-account";
99
import type { TaggedException } from "@effect-aws/commons";
10-
import { SdkError as CommonSdkError } from "@effect-aws/commons";
1110

1211
export const AllServiceErrors = [
1312
"AccessDeniedException",
@@ -24,6 +23,4 @@ export type InternalServerError = TaggedException<InternalServerException>;
2423
export type ResourceNotFoundError = TaggedException<ResourceNotFoundException>;
2524
export type TooManyRequestsError = TaggedException<TooManyRequestsException>;
2625
export type ValidationError = TaggedException<ValidationException>;
27-
28-
export type SdkError = CommonSdkError;
29-
export const SdkError = CommonSdkError;
26+
export type SdkError = TaggedException<Error & { name: "SdkError" }>;

packages/client-account/test/Account.test.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@ import {
66
} from "@aws-sdk/client-account";
77
// @ts-ignore
88
import * as runtimeConfig from "@aws-sdk/client-account/dist-cjs/runtimeConfig";
9-
import { Account, AccountServiceConfig, SdkError } from "@effect-aws/client-account";
9+
import { Account, AccountServiceConfig } from "@effect-aws/client-account";
10+
import { SdkError } from "@effect-aws/commons";
1011
import { mockClient } from "aws-sdk-client-mock";
1112
import { Effect, Exit } from "effect";
1213
import { pipe } from "effect/Function";

packages/client-api-gateway-management-api/src/ApiGatewayManagementApiService.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,13 @@ import {
1414
type PostToConnectionCommandInput,
1515
type PostToConnectionCommandOutput,
1616
} from "@aws-sdk/client-apigatewaymanagementapi";
17-
import type { HttpHandlerOptions, SdkError, ServiceLogger } from "@effect-aws/commons";
17+
import type { HttpHandlerOptions, ServiceLogger } from "@effect-aws/commons";
1818
import { Service } from "@effect-aws/commons";
1919
import type { Cause } from "effect";
2020
import { Effect, Layer } from "effect";
2121
import * as Instance from "./ApiGatewayManagementApiClientInstance.js";
2222
import * as ApiGatewayManagementApiServiceConfig from "./ApiGatewayManagementApiServiceConfig.js";
23-
import type { ForbiddenError, GoneError, LimitExceededError, PayloadTooLargeError } from "./Errors.js";
23+
import type { ForbiddenError, GoneError, LimitExceededError, PayloadTooLargeError, SdkError } from "./Errors.js";
2424
import { AllServiceErrors } from "./Errors.js";
2525

2626
const commands = {

packages/client-api-gateway-management-api/src/Errors.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ import type {
55
PayloadTooLargeException,
66
} from "@aws-sdk/client-apigatewaymanagementapi";
77
import type { TaggedException } from "@effect-aws/commons";
8-
import { SdkError as CommonSdkError } from "@effect-aws/commons";
98

109
export const AllServiceErrors = [
1110
"ForbiddenException",
@@ -18,6 +17,4 @@ export type ForbiddenError = TaggedException<ForbiddenException>;
1817
export type GoneError = TaggedException<GoneException>;
1918
export type LimitExceededError = TaggedException<LimitExceededException>;
2019
export type PayloadTooLargeError = TaggedException<PayloadTooLargeException>;
21-
22-
export type SdkError = CommonSdkError;
23-
export const SdkError = CommonSdkError;
20+
export type SdkError = TaggedException<Error & { name: "SdkError" }>;

packages/client-api-gateway-management-api/test/ApiGatewayManagementApi.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ import * as runtimeConfig from "@aws-sdk/client-apigatewaymanagementapi/dist-cjs
99
import {
1010
ApiGatewayManagementApi,
1111
ApiGatewayManagementApiServiceConfig,
12-
SdkError,
1312
} from "@effect-aws/client-api-gateway-management-api";
13+
import { SdkError } from "@effect-aws/commons";
1414
import { mockClient } from "aws-sdk-client-mock";
1515
import { Effect, Exit } from "effect";
1616
import { pipe } from "effect/Function";

packages/client-api-gateway-v2/src/ApiGatewayV2Service.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ import {
221221
type UpdateVpcLinkCommandInput,
222222
type UpdateVpcLinkCommandOutput,
223223
} from "@aws-sdk/client-apigatewayv2";
224-
import type { HttpHandlerOptions, SdkError, ServiceLogger } from "@effect-aws/commons";
224+
import type { HttpHandlerOptions, ServiceLogger } from "@effect-aws/commons";
225225
import { Service } from "@effect-aws/commons";
226226
import type { Cause } from "effect";
227227
import { Effect, Layer } from "effect";
@@ -232,6 +232,7 @@ import type {
232232
BadRequestError,
233233
ConflictError,
234234
NotFoundError,
235+
SdkError,
235236
TooManyRequestsError,
236237
} from "./Errors.js";
237238
import { AllServiceErrors } from "./Errors.js";

packages/client-api-gateway-v2/src/Errors.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ import type {
66
TooManyRequestsException,
77
} from "@aws-sdk/client-apigatewayv2";
88
import type { TaggedException } from "@effect-aws/commons";
9-
import { SdkError as CommonSdkError } from "@effect-aws/commons";
109

1110
export const AllServiceErrors = [
1211
"AccessDeniedException",
@@ -21,6 +20,4 @@ export type BadRequestError = TaggedException<BadRequestException>;
2120
export type ConflictError = TaggedException<ConflictException>;
2221
export type NotFoundError = TaggedException<NotFoundException>;
2322
export type TooManyRequestsError = TaggedException<TooManyRequestsException>;
24-
25-
export type SdkError = CommonSdkError;
26-
export const SdkError = CommonSdkError;
23+
export type SdkError = TaggedException<Error & { name: "SdkError" }>;

0 commit comments

Comments
 (0)