Skip to content
This repository was archived by the owner on Nov 18, 2025. It is now read-only.

Commit 0ade017

Browse files
committed
MAJOR: upgrade openapi-generator to 4.0.2. JS Lib is now ES6
1 parent c9d944e commit 0ade017

File tree

240 files changed

+18253
-18076
lines changed

Some content is hidden

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

240 files changed

+18253
-18076
lines changed

.babelrc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"presets": ["env", "stage-0"]
3+
}

.openapi-generator/VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
3.3.3
1+
4.0.2

.travis.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
language: node_js
2+
cache: npm
23
node_js:
34
- "6"
45
- "6.1"
5-
- "5"
6-
- "5.11"
7-

README.md

Lines changed: 47 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -14,19 +14,23 @@ This SDK is automatically generated by the [OpenAPI Generator](https://openapi-g
1414

1515
#### npm
1616

17-
To publish the library as a [npm](https://www.npmjs.com/),
18-
please follow the procedure in ["Publishing npm packages"](https://docs.npmjs.com/getting-started/publishing-npm-packages).
17+
To publish the library as a [npm](https://www.npmjs.com/), please follow the procedure in ["Publishing npm packages"](https://docs.npmjs.com/getting-started/publishing-npm-packages).
1918

2019
Then install it via:
2120

2221
```shell
2322
npm install @bimdata/bimdata-api-client --save
2423
```
2524

25+
Finaly, you need to build the module:
26+
27+
```shell
28+
npm run build
29+
```
30+
2631
##### Local development
2732

28-
To use the library locally without publishing to a remote npm registry, first install the dependencies by changing
29-
into the directory containing `package.json` (and this README). Let's call this `JAVASCRIPT_CLIENT_DIR`. Then run:
33+
To use the library locally without publishing to a remote npm registry, first install the dependencies by changing into the directory containing `package.json` (and this README). Let's call this `JAVASCRIPT_CLIENT_DIR`. Then run:
3034

3135
```shell
3236
npm install
@@ -38,19 +42,21 @@ Next, [link](https://docs.npmjs.com/cli/link) it globally in npm with the follow
3842
npm link
3943
```
4044

41-
Finally, switch to the directory you want to use your @bimdata/bimdata-api-client from, and run:
45+
To use the link you just defined in your project, switch to the directory you want to use your @bimdata/bimdata-api-client from, and run:
4246

4347
```shell
4448
npm link /path/to/<JAVASCRIPT_CLIENT_DIR>
4549
```
4650

47-
You should now be able to `require('@bimdata/bimdata-api-client')` in javascript files from the directory you ran the last
48-
command above from.
51+
Finaly, you need to build the module:
52+
53+
```shell
54+
npm run build
55+
```
4956

5057
#### git
51-
#
52-
If the library is hosted at a git repository, e.g.
53-
https://github.com/GIT_USER_ID/GIT_REPO_ID
58+
59+
If the library is hosted at a git repository, e.g.https://github.com/GIT_USER_ID/GIT_REPO_ID
5460
then install it via:
5561

5662
```shell
@@ -61,8 +67,7 @@ then install it via:
6167

6268
The library also works in the browser environment via npm and [browserify](http://browserify.org/). After following
6369
the above steps with Node.js and installing browserify with `npm install -g browserify`,
64-
perform the following (assuming *main.js* is your entry file, that's to say your javascript file where you actually
65-
use this library):
70+
perform the following (assuming *main.js* is your entry file):
6671

6772
```shell
6873
browserify main.js > bundle.js
@@ -96,17 +101,22 @@ Please follow the [installation](#installation) instruction and execute the foll
96101
var bimdata = require('@bimdata/bimdata-api-client');
97102

98103
var defaultClient = bimdata.ApiClient.instance;
99-
104+
// Configure OAuth2 access token for authorization: BIMDataConnect
105+
var BIMDataConnect = defaultClient.authentications['BIMDataConnect'];
106+
BIMDataConnect.accessToken = "YOUR ACCESS TOKEN"
100107
// Configure API key authorization: Bearer
101108
var Bearer = defaultClient.authentications['Bearer'];
102109
Bearer.apiKey = "YOUR API KEY"
103110
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
104111
//Bearer.apiKeyPrefix['Authorization'] = "Token"
112+
// Configure OAuth2 access token for authorization: client_credentials
113+
var client_credentials = defaultClient.authentications['client_credentials'];
114+
client_credentials.accessToken = "YOUR ACCESS TOKEN"
105115

106116
var api = new bimdata.ApplicationApi()
107117
var cloudPk = "cloudPk_example"; // {String}
108-
var webHook = new bimdata.WebHook(); // {WebHook}
109-
api.createWebHook(cloudPk, webHook).then(function(data) {
118+
var data = new bimdata.WebHook(); // {WebHook}
119+
api.createWebHook(cloudPk, data).then(function(data) {
110120
console.log('API called successfully. Returned data: ' + data);
111121
}, function(error) {
112122
console.error(error);
@@ -442,9 +452,31 @@ Class | Method | HTTP request | Description
442452
## Documentation for Authorization
443453

444454

455+
456+
### BIMDataConnect
457+
458+
459+
- **Type**: OAuth
460+
- **Flow**: implicit
461+
- **Authorization URL**: http://localhost:8081/authorize
462+
- **Scopes**: N/A
463+
464+
465+
445466
### Bearer
446467

468+
447469
- **Type**: API key
448470
- **API key parameter name**: Authorization
449471
- **Location**: HTTP header
450472

473+
474+
475+
### client_credentials
476+
477+
478+
- **Type**: OAuth
479+
- **Flow**: application
480+
- **Authorization URL**:
481+
- **Scopes**: N/A
482+

0 commit comments

Comments
 (0)