-
Notifications
You must be signed in to change notification settings - Fork 618
chore: add updated RDS DATA smithy model #370
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
Changes from all commits
Commits
Show all changes
17 commits
Select commit
Hold shift + click to select a range
e88a823
chore: add http request type guard for middlewares
AllanZhengYP e0d2b1d
chore: run test-all script in ci
AllanZhengYP 20f85c4
chore: add http request type guard for apply body checksum middlewares
AllanZhengYP 97523de
chore: only build and test demo smithy client
AllanZhengYP 55bec88
feat: add isInstance to httpResponse
AllanZhengYP 9c20ebc
chore: update rds data model
AllanZhengYP 96bb132
chore: update to ts3.7; update rds model#3
AllanZhengYP c60241b
chore: update tsconfig to genenerte types only once
AllanZhengYP 7dba143
chore: update rds model#4
0674245
Merge branch 'AllanFly120-smithy-codegen' of https://github.com/Allan…
AllanZhengYP f84b949
fix: fix merging issue
AllanZhengYP c722411
chore: update gitignore
AllanZhengYP 5e2a707
chore: parse body with streamCollector
f3f2833
chore: add error deserialization
ee5e5b9
chore: stub Field union
d14ef86
fix: fix middleware-header-default test
AllanZhengYP 1465a66
fix: fix retry-middleware unit test
AllanZhengYP File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,6 +2,8 @@ | |
/build/ | ||
/coverage/ | ||
/docs/ | ||
/types/ | ||
/dist/ | ||
*.tsbuildinfo | ||
*.tgz | ||
*.log | ||
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
export const TYPE = "__type"; | ||
|
||
/** | ||
* Checks if the given value is a Smithy structure of the given type. | ||
*/ | ||
export function isa<T>(o: any, ...ids: string[]): o is T { | ||
return typeof o === "object" && TYPE in o && ids.indexOf(o[TYPE]) > -1; | ||
} | ||
|
||
/** | ||
* Type that is implemented by all Smithy shapes marked with the | ||
* error trait. | ||
*/ | ||
export interface SmithyException { | ||
/** | ||
* The shape ID of the exception. | ||
*/ | ||
readonly __type: string; | ||
|
||
/** | ||
* Whether the client or server are at fault. | ||
*/ | ||
readonly $fault: "client" | "server"; | ||
|
||
/** | ||
* The name of the error. | ||
*/ | ||
readonly $name: string; | ||
|
||
/** | ||
* The service that encountered the exception. | ||
*/ | ||
readonly $service?: string; | ||
} | ||
|
||
/** | ||
* Smithy document type values. | ||
*/ | ||
export namespace DocumentType { | ||
export type Value = Scalar | Structure | List; | ||
export type Scalar = string | number | boolean | null | Uint8Array | Date; | ||
export type Structure = { [member: string]: Value }; | ||
export interface List extends Array<Value> {} | ||
} |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we could move this file into a shared package in the future. This is fine for now.