Skip to content
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

feat: regenerate APIs from the new openapi repository #332

Merged
merged 5 commits into from
Apr 26, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
### Features

1. [#326](https://github.com/influxdata/influxdb-client-js/pull/326): Apply gzip compression to writes.
1. [#331](https://github.com/influxdata/influxdb-client-js/pull/331): Regenerate APIs from swagger.
1. [#332](https://github.com/influxdata/influxdb-client-js/pull/331): Regenerate APIs from [oss.yml](https://github.com/influxdata/openapi/blob/master/contracts/oss.yml).

### Bug Fixes

Expand All @@ -17,6 +17,9 @@
compression work fine in the node.js environment, but it does not work OOTB in the browser.
The browser transport must be customized to do gzip, an example is provided in the `decorateRequest` field of
[FetchTransport](https://github.com/influxdata/influxdb-client-js/blob/master/packages/core/src/impl/browser/FetchTransport.ts).
1. [#332](https://github.com/influxdata/influxdb-client-js/pull/328): There are a few incompatible changes in the types used by
`UsersAPI`, it now uses a `UserResponse` type where a `User` type was used before. A `UserResponse` includes all properties of
a `User` type.

## 1.12.0 [2021-04-01]

Expand Down
2 changes: 1 addition & 1 deletion packages/apis/DEVELOPMENT.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ $ yarn build
## Re-generate APIs code

- update local resources/swagger.yml to the latest version
- `wget -O resources/swagger.yml https://raw.githubusercontent.com/influxdata/influxdb/master/http/swagger.yml`
- `wget -O resources/swagger.yml https://raw.githubusercontent.com/influxdata/openapi/master/contracts/oss.yml`
- re-generate src/generated/types.ts and resources/operations.json using [oats](https://github.com/bonitoo/oats)
- `rm -rf src/generated/*.ts`
- `oats -i 'types' --storeOperations resources/operations.json resources/swagger.yml > src/generated/types.ts`
Expand Down
Loading