Skip to content

Commit

Permalink
OpenAPI: Regenerates API Bindings (#35)
Browse files Browse the repository at this point in the history
* Regenerates API Bindings

* ENG 18614/test clean up (#36)

* Adding workflow tests

* Fixing version

* Fixing test folder call

* Switching to PAT for test dispatch

* Adding testing headers

* Fixing README version

* Fixing openapi-generator settings
  • Loading branch information
github-actions[bot] authored Nov 20, 2024
1 parent 0542217 commit 78b8985
Show file tree
Hide file tree
Showing 83 changed files with 3,293 additions and 700 deletions.
3 changes: 2 additions & 1 deletion .babelrc
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
],
"@babel/plugin-proposal-nullish-coalescing-operator",
"@babel/plugin-proposal-do-expressions",
"@babel/plugin-proposal-function-bind"
"@babel/plugin-proposal-function-bind",
"@babel/plugin-transform-runtime"
]
}
34 changes: 34 additions & 0 deletions .github/workflows/nodeapp.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Mocha Tests
env:
API_HOST: ${{ vars.API_HOST }}
API_KEY: ${{ secrets.API_KEY }}

on:
push:
branches: [ master, openapi-bindings ]
pull_request:
branches: [ master, openapi-bindings ]

jobs:
build:
runs-on: gcp-runner
steps:
- name: Checkout
uses: actions/checkout@v2

- name: 🔨 Setup Node.js
uses: actions/setup-node@v2
with:
always-auth: true
node-version: '20.10.0'
registry-url: https://npm.pkg.github.com
scope: '@lilt'

- name: Install dependencies
run: npm ci

- name: Run build
run: npm run build --if-present

- name: Run Mocha tests
run: npm test
2 changes: 2 additions & 0 deletions .github/workflows/openapi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,15 @@ jobs:
-p projectName=lilt-node
-p packageVersion=${{ github.event.client_payload.version }}
-p usePromises=true
-p licenseName="SEE LICENSE IN LICENSE.md"
--git-user-id lilt
--git-repo-id lilt-node
--skip-validate-spec
-o .
- name: Create Pull Request
uses: peter-evans/create-pull-request@v6.1.0
with:
token: ${{ secrets.GHA_REPO_DISPATCH_TOKEN }}
commit-message: Regenerates API Bindings
title: "OpenAPI: Regenerates API Bindings"
body: |
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
/node_modules/
/dist/
.env
7 changes: 4 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ Our services have a general quota of 4000 requests per minute. Should you hit th

This SDK is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:

- API version: v3.0
- Package version: 0.6.3
- API version: 3.0.0
- Package version: 3.0.0
- Build package: org.openapitools.codegen.languages.JavascriptClientCodegen

## Installation
Expand Down Expand Up @@ -171,7 +171,7 @@ Class | Method | HTTP request | Description
*LiltNode.JobsApi* | [**createJob**](docs/JobsApi.md#createJob) | **POST** /v2/jobs | Create a Job
*LiltNode.JobsApi* | [**deleteJob**](docs/JobsApi.md#deleteJob) | **DELETE** /v2/jobs/{jobId} | Delete a Job
*LiltNode.JobsApi* | [**deliverJob**](docs/JobsApi.md#deliverJob) | **POST** /v2/jobs/{jobId}/deliver | Deliver a Job
*LiltNode.JobsApi* | [**downloadJob**](docs/JobsApi.md#downloadJob) | **GET** /v2/jobs/{jobId}/downlod | Download a Job
*LiltNode.JobsApi* | [**downloadJob**](docs/JobsApi.md#downloadJob) | **GET** /v2/jobs/{jobId}/download | Download a Job
*LiltNode.JobsApi* | [**exportJob**](docs/JobsApi.md#exportJob) | **GET** /v2/jobs/{jobId}/export | Export a Job
*LiltNode.JobsApi* | [**getJob**](docs/JobsApi.md#getJob) | **GET** /v2/jobs/{jobId} | Retrieve a Job
*LiltNode.JobsApi* | [**getJobLeverageStats**](docs/JobsApi.md#getJobLeverageStats) | **POST** /v2/jobs/{jobId}/stats | Retrieve Job Leverage Stats
Expand Down Expand Up @@ -222,6 +222,7 @@ Class | Method | HTTP request | Description
- [LiltNode.LanguagesResponse](docs/LanguagesResponse.md)
- [LiltNode.LiltCreateContent](docs/LiltCreateContent.md)
- [LiltNode.LiltCreateContentPreferences](docs/LiltCreateContentPreferences.md)
- [LiltNode.LiltCreateContentRequest](docs/LiltCreateContentRequest.md)
- [LiltNode.LiltCreateContentTemplateParams](docs/LiltCreateContentTemplateParams.md)
- [LiltNode.Memory](docs/Memory.md)
- [LiltNode.MemoryCreateParameters](docs/MemoryCreateParameters.md)
Expand Down
22 changes: 11 additions & 11 deletions docs/CreateApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ Name | Type | Description | Notes
### HTTP request headers

- **Content-Type**: Not defined
- **Accept**: application/json
- **Accept**: application/json, application/octet-stream, text/plain


## generateLiltCreateContent
Expand All @@ -94,7 +94,7 @@ BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

let apiInstance = new LiltNode.CreateApi();
let templateParams = new LiltNode.LiltCreateContent(); // LiltCreateContent | Input parameters that determine what content will be generated.
let templateParams = new LiltNode.LiltCreateContentRequest(); // LiltCreateContentRequest | Input parameters that determine what content will be generated.
apiInstance.generateLiltCreateContent(templateParams).then(() => {
console.log('API called successfully.');
}, (error) => {
Expand All @@ -108,7 +108,7 @@ apiInstance.generateLiltCreateContent(templateParams).then(() => {

Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**templateParams** | [**LiltCreateContent**](LiltCreateContent.md)| Input parameters that determine what content will be generated. |
**templateParams** | [**LiltCreateContentRequest**](LiltCreateContentRequest.md)| Input parameters that determine what content will be generated. |

### Return type

Expand All @@ -121,7 +121,7 @@ null (empty response body)
### HTTP request headers

- **Content-Type**: application/json
- **Accept**: Not defined
- **Accept**: application/octet-stream, text/plain, application/json


## getLiltCreateById
Expand Down Expand Up @@ -175,7 +175,7 @@ Name | Type | Description | Notes
### HTTP request headers

- **Content-Type**: Not defined
- **Accept**: application/json
- **Accept**: application/json, application/octet-stream, text/plain


## getLiltCreateContent
Expand Down Expand Up @@ -225,7 +225,7 @@ This endpoint does not need any parameter.
### HTTP request headers

- **Content-Type**: Not defined
- **Accept**: application/json
- **Accept**: application/json, application/octet-stream, text/plain


## getLiltCreatePreferences
Expand Down Expand Up @@ -275,7 +275,7 @@ null (empty response body)
### HTTP request headers

- **Content-Type**: Not defined
- **Accept**: Not defined
- **Accept**: application/octet-stream, text/plain, application/json


## regenerateLiltCreateContent
Expand Down Expand Up @@ -329,7 +329,7 @@ null (empty response body)
### HTTP request headers

- **Content-Type**: Not defined
- **Accept**: Not defined
- **Accept**: application/octet-stream, text/plain, application/json


## signLiltCreateTerms
Expand Down Expand Up @@ -383,7 +383,7 @@ Name | Type | Description | Notes
### HTTP request headers

- **Content-Type**: application/json
- **Accept**: application/json
- **Accept**: application/json, application/octet-stream, text/plain


## updateLiltCreateContent
Expand Down Expand Up @@ -441,7 +441,7 @@ Name | Type | Description | Notes
### HTTP request headers

- **Content-Type**: application/json
- **Accept**: application/json
- **Accept**: application/json, application/octet-stream, text/plain


## updateLiltCreatePreferences
Expand Down Expand Up @@ -497,5 +497,5 @@ null (empty response body)
### HTTP request headers

- **Content-Type**: application/json
- **Accept**: Not defined
- **Accept**: application/octet-stream, text/plain, application/json

4 changes: 2 additions & 2 deletions docs/DocumentsApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ Name | Type | Description | Notes
### HTTP request headers

- **Content-Type**: Not defined
- **Accept**: application/octet-stream
- **Accept**: application/octet-stream, text/plain,


## uploadDocument
Expand Down Expand Up @@ -134,5 +134,5 @@ Name | Type | Description | Notes
### HTTP request headers

- **Content-Type**: application/octet-stream
- **Accept**: application/json
- **Accept**: application/json, application/octet-stream, text/plain

2 changes: 1 addition & 1 deletion docs/Error.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**message** | [**Object**](.md) | A human-readable message describing the error. | [optional]
**message** | **String** | A human-readable message describing the error. | [optional]


12 changes: 6 additions & 6 deletions docs/FilesApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ null (empty response body)
### HTTP request headers

- **Content-Type**: application/json
- **Accept**: Not defined
- **Accept**: application/octet-stream, text/plain, application/json


## deleteFile
Expand Down Expand Up @@ -120,7 +120,7 @@ Name | Type | Description | Notes
### HTTP request headers

- **Content-Type**: Not defined
- **Accept**: application/json
- **Accept**: application/json, application/octet-stream, text/plain


## download
Expand Down Expand Up @@ -174,7 +174,7 @@ Name | Type | Description | Notes
### HTTP request headers

- **Content-Type**: Not defined
- **Accept**: application/octet-stream
- **Accept**: application/octet-stream, text/plain, application/json


## getFiles
Expand Down Expand Up @@ -232,7 +232,7 @@ Name | Type | Description | Notes
### HTTP request headers

- **Content-Type**: Not defined
- **Accept**: application/json
- **Accept**: application/json, application/octet-stream, text/plain


## removeLabel
Expand Down Expand Up @@ -288,7 +288,7 @@ null (empty response body)
### HTTP request headers

- **Content-Type**: Not defined
- **Accept**: Not defined
- **Accept**: application/octet-stream, text/plain, application/json


## uploadFile
Expand Down Expand Up @@ -356,5 +356,5 @@ Name | Type | Description | Notes
### HTTP request headers

- **Content-Type**: application/octet-stream
- **Accept**: application/json
- **Accept**: application/json, application/octet-stream, text/plain

Loading

0 comments on commit 78b8985

Please sign in to comment.