Skip to content

feat: export folders from index.ts #455

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 8 commits into from
Oct 20, 2021

Conversation

trivikr
Copy link
Contributor

@trivikr trivikr commented Oct 18, 2021

Issue #, if available:
N/A

Description of changes:
Exports folders from index.ts

Testing:
Verified the ssdk tests contain operations/index.ts which exports all operations.

Console
$ cat protocol_tests/aws-restjson-server/src/server/index.ts 
export * from "./RestJsonService";
export * from "./operations";

$ head protocol_tests/aws-restjson-server/src/server/operations/index.ts
export * from "./AllQueryStringTypes";
export * from "./ConstantAndVariableQueryString";
export * from "./ConstantQueryString";
export * from "./DocumentType";
export * from "./DocumentTypeAsPayload";
export * from "./EmptyInputAndEmptyOutput";
export * from "./EndpointOperation";
export * from "./EndpointWithHostLabelOperation";
export * from "./GreetingWithErrors";
export * from "./HostWithPathOperation";

$ tree protocol_tests/aws-restjson-server/
protocol_tests/aws-restjson-server/
├── jest.config.js
├── LICENSE
├── package.json
├── src
│   ├── index.ts
│   ├── models
│   │   ├── index.ts
│   │   └── models_0.ts
│   ├── protocols
│   │   └── Aws_restJson1.ts
│   └── server
│       ├── index.ts
│       ├── operations
│       │   ├── AllQueryStringTypes.ts
│       │   ├── ConstantAndVariableQueryString.ts
│       │   ├── ConstantQueryString.ts
│       │   ├── DocumentTypeAsPayload.ts
│       │   ├── DocumentType.ts
│       │   ├── EmptyInputAndEmptyOutput.ts
│       │   ├── EndpointOperation.ts
│       │   ├── EndpointWithHostLabelOperation.ts
│       │   ├── GreetingWithErrors.ts
│       │   ├── HostWithPathOperation.ts
│       │   ├── HttpChecksumRequired.ts
│       │   ├── HttpEnumPayload.ts
│       │   ├── HttpPayloadTraits.ts
│       │   ├── HttpPayloadTraitsWithMediaType.ts
│       │   ├── HttpPayloadWithStructure.ts
│       │   ├── HttpPrefixHeadersResponse.ts
│       │   ├── HttpPrefixHeaders.ts
│       │   ├── HttpRequestWithFloatLabels.ts
│       │   ├── HttpRequestWithGreedyLabelInPath.ts
│       │   ├── HttpRequestWithLabelsAndTimestampFormat.ts
│       │   ├── HttpRequestWithLabels.ts
│       │   ├── HttpResponseCode.ts
│       │   ├── HttpStringPayload.ts
│       │   ├── IgnoreQueryParamsInResponse.ts
│       │   ├── index.ts
│       │   ├── InputAndOutputWithHeaders.ts
│       │   ├── JsonBlobs.ts
│       │   ├── JsonEnums.ts
│       │   ├── JsonLists.ts
│       │   ├── JsonMaps.ts
│       │   ├── JsonTimestamps.ts
│       │   ├── JsonUnions.ts
│       │   ├── MalformedAcceptWithBody.ts
│       │   ├── MalformedAcceptWithGenericString.ts
│       │   ├── MalformedAcceptWithPayload.ts
│       │   ├── MalformedBlob.ts
│       │   ├── MalformedBoolean.ts
│       │   ├── MalformedByte.ts
│       │   ├── MalformedContentTypeWithBody.ts
│       │   ├── MalformedContentTypeWithGenericString.ts
│       │   ├── MalformedContentTypeWithoutBody.ts
│       │   ├── MalformedContentTypeWithPayload.ts
│       │   ├── MalformedDouble.ts
│       │   ├── MalformedFloat.ts
│       │   ├── MalformedInteger.ts
│       │   ├── MalformedList.ts
│       │   ├── MalformedLong.ts
│       │   ├── MalformedMap.ts
│       │   ├── MalformedRequestBody.ts
│       │   ├── MalformedSet.ts
│       │   ├── MalformedShort.ts
│       │   ├── MalformedString.ts
│       │   ├── MalformedTimestampBodyDateTime.ts
│       │   ├── MalformedTimestampBodyDefault.ts
│       │   ├── MalformedTimestampBodyHttpDate.ts
│       │   ├── MalformedTimestampHeaderDateTime.ts
│       │   ├── MalformedTimestampHeaderDefault.ts
│       │   ├── MalformedTimestampHeaderEpoch.ts
│       │   ├── MalformedTimestampPathDefault.ts
│       │   ├── MalformedTimestampPathEpoch.ts
│       │   ├── MalformedTimestampPathHttpDate.ts
│       │   ├── MalformedTimestampQueryDefault.ts
│       │   ├── MalformedTimestampQueryEpoch.ts
│       │   ├── MalformedTimestampQueryHttpDate.ts
│       │   ├── MalformedUnion.ts
│       │   ├── MediaTypeHeader.ts
│       │   ├── NoInputAndNoOutput.ts
│       │   ├── NoInputAndOutput.ts
│       │   ├── NullAndEmptyHeadersClient.ts
│       │   ├── NullAndEmptyHeadersServer.ts
│       │   ├── OmitsNullSerializesEmptyString.ts
│       │   ├── QueryIdempotencyTokenAutoFill.ts
│       │   ├── QueryParamsAsStringListMap.ts
│       │   ├── QueryPrecedence.ts
│       │   ├── RecursiveShapes.ts
│       │   ├── SimpleScalarProperties.ts
│       │   ├── StreamingTraitsRequireLength.ts
│       │   ├── StreamingTraits.ts
│       │   ├── StreamingTraitsWithMediaType.ts
│       │   ├── TestBodyStructure.ts
│       │   ├── TestNoPayload.ts
│       │   ├── TestPayloadBlob.ts
│       │   ├── TestPayloadStructure.ts
│       │   └── TimestampFormatHeaders.ts
│       └── RestJsonService.ts
├── test
│   └── functional
│       └── restjson1.spec.ts
├── tsconfig.es.json
├── tsconfig.json
└── tsconfig.types.json

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@trivikr trivikr marked this pull request as ready for review October 18, 2021 22:19
Copy link
Contributor

@AllanZhengYP AllanZhengYP left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for adding it!

@trivikr trivikr merged commit 2d95be8 into smithy-lang:main Oct 20, 2021
@trivikr trivikr deleted the export-from-index branch October 20, 2021 21:31
srchase pushed a commit to srchase/smithy-typescript that referenced this pull request Mar 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants