-
Notifications
You must be signed in to change notification settings - Fork 40
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #20 from square/release/9.0.0
Generated PR for Release: 9.0.0
- Loading branch information
Showing
344 changed files
with
925 additions
and
7,764 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains 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 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,18 @@ | ||
|
||
# ApiError | ||
|
||
Thrown when the HTTP status code is not okay. | ||
|
||
The ApiError extends the ApiResponse interface, so all ApiResponse properties are available. | ||
|
||
## Properties | ||
|
||
| Name | Type | Description | | ||
| --- | --- | --- | | ||
| request | HttpRequest | Original request that resulted in this response. | | ||
| statusCode | number | Response status codee. | | ||
| headers | Record<string, string> | Response headers. | | ||
| result | T | Response data. | | ||
| body | string | Blob | NodeJS.ReadableStream | Original body from the response. | | ||
| errors? | Error[] | Represents an error encountered during a request to the Connect API | | ||
|
This file contains 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,15 @@ | ||
|
||
# ApiResponse | ||
|
||
An interface for the result of an API call. | ||
|
||
## Properties | ||
|
||
| Name | Type | Description | | ||
| --- | --- | --- | | ||
| request | HttpRequest | Original request that resulted in this response. | | ||
| statusCode | number | Response status codee. | | ||
| headers | Record<string, string> | Response headers. | | ||
| result | T | Response data. | | ||
| body | string | Blob | NodeJS.ReadableStream | Original body from the response. | | ||
|
This file contains 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 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 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 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
Oops, something went wrong.