20 Commits
openapi ... sdk

Author SHA1 Message Date
8b77f7e42c chore: update subproject commit reference in sdk 2025-10-29 17:06:47 +02:00
9e79b44bdb feat: implement session management with SessionController and SessionService; enhance session update logic to handle non-existent sessions 2025-10-29 17:06:38 +02:00
7fad278d31 chore: update subproject commit reference in sdk 2025-10-28 21:00:22 +02:00
776d8a8187 feat: update deleteSetting endpoint to use path parameter for key 2025-10-28 20:43:00 +02:00
e4b29a918f Merge remote-tracking branch 'origin/projectDetails' into sdk 2025-10-28 20:40:58 +02:00
4acd59b482 chore: update subproject commit reference in sdk 2025-10-28 20:37:22 +02:00
84c48dd482 feat: add getProjectInfo method and corresponding endpoint in ProjectController; refactor logger methods to include projectId 2025-10-28 20:36:53 +02:00
bbc378dc95 feat: add isPublic field to Query entity and implement QueryPublicGuard for public query access control 2025-10-28 16:35:26 +02:00
5d596832d6 feat: add optional isTypescript parameter to create and update query methods 2025-10-28 15:40:03 +02:00
3a1249615e feat: add TypeScript compilation support in QueryExecuterService 2025-10-28 15:37:09 +02:00
0ac6b7db6f chore: update subproject commit reference in sdk 2025-10-27 20:07:34 +02:00
9080f193c1 fix: update revokeToken method to use @Param decorator for token retrieval 2025-10-27 20:07:26 +02:00
1a2d7b20c0 feat: add submodule configuration for few-line-sdk 2025-10-27 19:20:15 +02:00
e1fce6d11d chore: remove submodule configuration for few-line-sdk 2025-10-27 19:13:37 +02:00
1d5160e60e chore: remove submodule reference for lib 2025-10-27 19:11:41 +02:00
038f2f8605 fix: remove unnecessary blank line in ProjectService 2025-10-27 19:08:56 +02:00
91ad421b8d feat: add submodule for few-line-sdk library 2025-10-27 19:08:40 +02:00
ee5ad66759 feat: add meta field to project entity and corresponding migration, service, and controller updates 2025-10-15 20:47:11 +03:00
f7b775f87b Merge remote-tracking branch 'origin/develop' into projectDetails 2025-10-15 19:53:41 +03:00
6992041429 feat: add getProjectDetails method and corresponding endpoint 2025-10-15 19:52:36 +03:00
135 changed files with 314 additions and 12942 deletions

3
.gitmodules vendored Normal file
View File

@ -0,0 +1,3 @@
[submodule "lib/sdk"]
path = lib/sdk
url = http://192.168.0.16:3000/lborv/few-line-sdk.git

1
lib/sdk Submodule

Submodule lib/sdk added at 4b8c6753ef

File diff suppressed because it is too large Load Diff

View File

@ -1,33 +0,0 @@
{
"presets": [
"@babel/preset-env"
],
"plugins": [
"@babel/plugin-syntax-dynamic-import",
"@babel/plugin-syntax-import-meta",
"@babel/plugin-proposal-class-properties",
"@babel/plugin-proposal-json-strings",
[
"@babel/plugin-proposal-decorators",
{
"legacy": true
}
],
"@babel/plugin-proposal-function-sent",
"@babel/plugin-proposal-export-namespace-from",
"@babel/plugin-proposal-numeric-separator",
"@babel/plugin-proposal-throw-expressions",
"@babel/plugin-proposal-export-default-from",
"@babel/plugin-proposal-logical-assignment-operators",
"@babel/plugin-proposal-optional-chaining",
[
"@babel/plugin-proposal-pipeline-operator",
{
"proposal": "minimal"
}
],
"@babel/plugin-proposal-nullish-coalescing-operator",
"@babel/plugin-proposal-do-expressions",
"@babel/plugin-proposal-function-bind"
]
}

130
out/js/.gitignore vendored
View File

@ -1,130 +0,0 @@
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
lerna-debug.log*
.pnpm-debug.log*
# Diagnostic reports (https://nodejs.org/api/report.html)
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json
# Runtime data
pids
*.pid
*.seed
*.pid.lock
# Directory for instrumented libs generated by jscoverage/JSCover
lib-cov
# Coverage directory used by tools like istanbul
coverage
*.lcov
# nyc test coverage
.nyc_output
# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)
.grunt
# Bower dependency directory (https://bower.io/)
bower_components
# node-waf configuration
.lock-wscript
# Compiled binary addons (https://nodejs.org/api/addons.html)
build/Release
# Dependency directories
node_modules/
jspm_packages/
# Snowpack dependency directory (https://snowpack.dev/)
web_modules/
# TypeScript cache
*.tsbuildinfo
# Optional npm cache directory
.npm
# Optional eslint cache
.eslintcache
# Optional stylelint cache
.stylelintcache
# Microbundle cache
.rpt2_cache/
.rts2_cache_cjs/
.rts2_cache_es/
.rts2_cache_umd/
# Optional REPL history
.node_repl_history
# Output of 'npm pack'
*.tgz
# Yarn Integrity file
.yarn-integrity
# dotenv environment variable files
.env
.env.development.local
.env.test.local
.env.production.local
.env.local
# parcel-bundler cache (https://parceljs.org/)
.cache
.parcel-cache
# Next.js build output
.next
out
# Nuxt.js build / generate output
.nuxt
dist
# Gatsby files
.cache/
# Comment in the public line in if your project uses Gatsby and not Next.js
# https://nextjs.org/blog/next-9-1#public-directory-support
# public
# vuepress build output
.vuepress/dist
# vuepress v2.x temp and cache directory
.temp
.cache
# Docusaurus cache and generated files
.docusaurus
# Serverless directories
.serverless/
# FuseBox cache
.fusebox/
# DynamoDB Local files
.dynamodb/
# TernJS port file
.tern-port
# Stores VSCode versions used for testing VSCode extensions
.vscode-test
# yarn v2
.yarn/cache
.yarn/unplugged
.yarn/build-state.yml
.yarn/install-state.gz
.pnp.*

View File

@ -1,23 +0,0 @@
# OpenAPI Generator Ignore
# Generated by openapi-generator https://github.com/openapitools/openapi-generator
# Use this file to prevent files from being overwritten by the generator.
# The patterns follow closely to .gitignore or .dockerignore.
# As an example, the C# client generator defines ApiClient.cs.
# You can make changes and tell OpenAPI Generator to ignore just this file by uncommenting the following line:
#ApiClient.cs
# You can match any string of characters against a directory, file or extension with a single asterisk (*):
#foo/*/qux
# The above matches foo/bar/qux and foo/baz/qux, but not foo/bar/baz/qux
# You can recursively match patterns against a directory, file or extension with a double asterisk (**):
#foo/**/qux
# This matches foo/bar/qux, foo/baz/qux, and foo/bar/baz/qux
# You can also negate patterns with an exclamation (!).
# For example, you can ignore all files in a docs folder with the file extension .md:
#docs/*.md
# Then explicitly reverse the ignore rule for a single file:
#!docs/README.md

View File

@ -1,115 +0,0 @@
.babelrc
.gitignore
.openapi-generator-ignore
.travis.yml
README.md
docs/APITokensApi.md
docs/ApiTokenGeneratePostRequest.md
docs/CommandCreatePostRequest.md
docs/CommandUpdateIdPostRequest.md
docs/CommandsApi.md
docs/Database.md
docs/DatabaseCreatePostRequest.md
docs/DatabaseManagementApi.md
docs/DatabaseMigrationCreatePostRequest.md
docs/DatabaseNode.md
docs/DatabaseNodeCreatePostRequest.md
docs/DatabaseQueryDatabaseIdPostRequest.md
docs/Error.md
docs/Function.md
docs/FunctionsApi.md
docs/FunctionsCreatePostRequest.md
docs/FunctionsDeletePostRequest.md
docs/Log.md
docs/LogContentInner.md
docs/LoggerIdFindAllPostRequest.md
docs/LoggingApi.md
docs/Migration.md
docs/Project.md
docs/ProjectCreatePutRequest.md
docs/ProjectManagementApi.md
docs/ProjectSetting.md
docs/ProjectSettingsCreatePutRequest.md
docs/QueriesApi.md
docs/Query.md
docs/QueryCreatePostRequest.md
docs/QueryUpdateIdPostRequest.md
docs/RedisManagementApi.md
docs/RedisNode.md
docs/RedisNodeCreatePostRequest.md
docs/Token.md
git_push.sh
mocha.opts
package.json
src/ApiClient.js
src/api/APITokensApi.js
src/api/CommandsApi.js
src/api/DatabaseManagementApi.js
src/api/FunctionsApi.js
src/api/LoggingApi.js
src/api/ProjectManagementApi.js
src/api/QueriesApi.js
src/api/RedisManagementApi.js
src/index.js
src/model/ApiTokenGeneratePostRequest.js
src/model/CommandCreatePostRequest.js
src/model/CommandUpdateIdPostRequest.js
src/model/Database.js
src/model/DatabaseCreatePostRequest.js
src/model/DatabaseMigrationCreatePostRequest.js
src/model/DatabaseNode.js
src/model/DatabaseNodeCreatePostRequest.js
src/model/DatabaseQueryDatabaseIdPostRequest.js
src/model/Error.js
src/model/Function.js
src/model/FunctionsCreatePostRequest.js
src/model/FunctionsDeletePostRequest.js
src/model/Log.js
src/model/LogContentInner.js
src/model/LoggerIdFindAllPostRequest.js
src/model/Migration.js
src/model/Project.js
src/model/ProjectCreatePutRequest.js
src/model/ProjectSetting.js
src/model/ProjectSettingsCreatePutRequest.js
src/model/Query.js
src/model/QueryCreatePostRequest.js
src/model/QueryUpdateIdPostRequest.js
src/model/RedisNode.js
src/model/RedisNodeCreatePostRequest.js
src/model/Token.js
test/api/APITokensApi.spec.js
test/api/CommandsApi.spec.js
test/api/DatabaseManagementApi.spec.js
test/api/FunctionsApi.spec.js
test/api/LoggingApi.spec.js
test/api/ProjectManagementApi.spec.js
test/api/QueriesApi.spec.js
test/api/RedisManagementApi.spec.js
test/model/ApiTokenGeneratePostRequest.spec.js
test/model/CommandCreatePostRequest.spec.js
test/model/CommandUpdateIdPostRequest.spec.js
test/model/Database.spec.js
test/model/DatabaseCreatePostRequest.spec.js
test/model/DatabaseMigrationCreatePostRequest.spec.js
test/model/DatabaseNode.spec.js
test/model/DatabaseNodeCreatePostRequest.spec.js
test/model/DatabaseQueryDatabaseIdPostRequest.spec.js
test/model/Error.spec.js
test/model/Function.spec.js
test/model/FunctionsCreatePostRequest.spec.js
test/model/FunctionsDeletePostRequest.spec.js
test/model/Log.spec.js
test/model/LogContentInner.spec.js
test/model/LoggerIdFindAllPostRequest.spec.js
test/model/Migration.spec.js
test/model/Project.spec.js
test/model/ProjectCreatePutRequest.spec.js
test/model/ProjectSetting.spec.js
test/model/ProjectSettingsCreatePutRequest.spec.js
test/model/Query.spec.js
test/model/QueryCreatePostRequest.spec.js
test/model/QueryUpdateIdPostRequest.spec.js
test/model/RedisNode.spec.js
test/model/RedisNodeCreatePostRequest.spec.js
test/model/Token.spec.js

View File

@ -1 +0,0 @@
7.17.0-SNAPSHOT

View File

@ -1,5 +0,0 @@
language: node_js
cache: npm
node_js:
- "6"
- "6.1"

View File

@ -1,222 +0,0 @@
# low_code_engine_api
LowCodeEngineApi - JavaScript client for low_code_engine_api
API documentation for the Low-Code Engine platform that provides query execution, database management, and project administration capabilities.
This SDK is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
- API version: 1.0.0
- Package version: 1.0.0
- Generator version: 7.17.0-SNAPSHOT
- Build package: org.openapitools.codegen.languages.JavascriptClientCodegen
## Installation
### For [Node.js](https://nodejs.org/)
#### npm
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).
Then install it via:
```shell
npm install low_code_engine_api --save
```
Finally, you need to build the module:
```shell
npm run build
```
##### Local development
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:
```shell
npm install
```
Next, [link](https://docs.npmjs.com/cli/link) it globally in npm with the following, also from `JAVASCRIPT_CLIENT_DIR`:
```shell
npm link
```
To use the link you just defined in your project, switch to the directory you want to use your low_code_engine_api from, and run:
```shell
npm link /path/to/<JAVASCRIPT_CLIENT_DIR>
```
Finally, you need to build the module:
```shell
npm run build
```
#### git
If the library is hosted at a git repository, e.g.https://github.com/GIT_USER_ID/GIT_REPO_ID
then install it via:
```shell
npm install GIT_USER_ID/GIT_REPO_ID --save
```
### For browser
The library also works in the browser environment via npm and [browserify](http://browserify.org/). After following
the above steps with Node.js and installing browserify with `npm install -g browserify`,
perform the following (assuming *main.js* is your entry file):
```shell
browserify main.js > bundle.js
```
Then include *bundle.js* in the HTML pages.
### Webpack Configuration
Using Webpack you may encounter the following error: "Module not found: Error:
Cannot resolve module", most certainly you should disable AMD loader. Add/merge
the following section to your webpack config:
```javascript
module: {
rules: [
{
parser: {
amd: false
}
}
]
}
```
## Getting Started
Please follow the [installation](#installation) instruction and execute the following JS code:
```javascript
var LowCodeEngineApi = require('low_code_engine_api');
var defaultClient = LowCodeEngineApi.ApiClient.instance;
// Configure API key authorization: AdminAuth
var AdminAuth = defaultClient.authentications['AdminAuth'];
AdminAuth.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//AdminAuth.apiKeyPrefix['x-admin-token'] = "Token"
// Configure API key authorization: ApiKeyAuth
var ApiKeyAuth = defaultClient.authentications['ApiKeyAuth'];
ApiKeyAuth.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//ApiKeyAuth.apiKeyPrefix['Authorization'] = "Token"
var api = new LowCodeEngineApi.APITokensApi()
var apiTokenGeneratePostRequest = new LowCodeEngineApi.ApiTokenGeneratePostRequest(); // {ApiTokenGeneratePostRequest}
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
api.apiTokenGeneratePost(apiTokenGeneratePostRequest, callback);
```
## Documentation for API Endpoints
All URIs are relative to *http://localhost:3000*
Class | Method | HTTP request | Description
------------ | ------------- | ------------- | -------------
*LowCodeEngineApi.APITokensApi* | [**apiTokenGeneratePost**](docs/APITokensApi.md#apiTokenGeneratePost) | **POST** /api/token/generate | Generate API token
*LowCodeEngineApi.APITokensApi* | [**apiTokenRevokeTokenDelete**](docs/APITokensApi.md#apiTokenRevokeTokenDelete) | **DELETE** /api/token/revoke/{token} | Revoke API token
*LowCodeEngineApi.CommandsApi* | [**commandCreatePost**](docs/CommandsApi.md#commandCreatePost) | **POST** /command/create | Create command
*LowCodeEngineApi.CommandsApi* | [**commandDeleteIdDelete**](docs/CommandsApi.md#commandDeleteIdDelete) | **DELETE** /command/delete/{id} | Delete command
*LowCodeEngineApi.CommandsApi* | [**commandRunIdPost**](docs/CommandsApi.md#commandRunIdPost) | **POST** /command/run/{id} | Run command
*LowCodeEngineApi.CommandsApi* | [**commandUpdateIdPost**](docs/CommandsApi.md#commandUpdateIdPost) | **POST** /command/update/{id} | Update command
*LowCodeEngineApi.DatabaseManagementApi* | [**databaseColumnsDatabaseIdTableNameGet**](docs/DatabaseManagementApi.md#databaseColumnsDatabaseIdTableNameGet) | **GET** /database/columns/{databaseId}/{tableName} | Get table columns
*LowCodeEngineApi.DatabaseManagementApi* | [**databaseCreatePost**](docs/DatabaseManagementApi.md#databaseCreatePost) | **POST** /database/create | Create database
*LowCodeEngineApi.DatabaseManagementApi* | [**databaseMigrationCreatePost**](docs/DatabaseManagementApi.md#databaseMigrationCreatePost) | **POST** /database/migration/create | Create migration
*LowCodeEngineApi.DatabaseManagementApi* | [**databaseMigrationDownDatabaseIdGet**](docs/DatabaseManagementApi.md#databaseMigrationDownDatabaseIdGet) | **GET** /database/migration/down/{databaseId} | Run migrations down
*LowCodeEngineApi.DatabaseManagementApi* | [**databaseMigrationUpDatabaseIdGet**](docs/DatabaseManagementApi.md#databaseMigrationUpDatabaseIdGet) | **GET** /database/migration/up/{databaseId} | Run migrations up
*LowCodeEngineApi.DatabaseManagementApi* | [**databaseNodeCreatePost**](docs/DatabaseManagementApi.md#databaseNodeCreatePost) | **POST** /database/node/create | Add database node
*LowCodeEngineApi.DatabaseManagementApi* | [**databaseQueryDatabaseIdPost**](docs/DatabaseManagementApi.md#databaseQueryDatabaseIdPost) | **POST** /database/query/{databaseId} | Run database query
*LowCodeEngineApi.DatabaseManagementApi* | [**databaseTablesDatabaseIdGet**](docs/DatabaseManagementApi.md#databaseTablesDatabaseIdGet) | **GET** /database/tables/{databaseId} | Get database tables
*LowCodeEngineApi.FunctionsApi* | [**functionsCreatePost**](docs/FunctionsApi.md#functionsCreatePost) | **POST** /functions/create | Create function
*LowCodeEngineApi.FunctionsApi* | [**functionsDeletePost**](docs/FunctionsApi.md#functionsDeletePost) | **POST** /functions/delete | Delete function
*LowCodeEngineApi.LoggingApi* | [**loggerIdFindAllPost**](docs/LoggingApi.md#loggerIdFindAllPost) | **POST** /logger/{id}/findAll | Find all logs
*LowCodeEngineApi.LoggingApi* | [**loggerIdFindPost**](docs/LoggingApi.md#loggerIdFindPost) | **POST** /logger/{id}/find | Find logs for query
*LowCodeEngineApi.LoggingApi* | [**loggerIdTraceIdGet**](docs/LoggingApi.md#loggerIdTraceIdGet) | **GET** /logger/{id}/{traceId} | Get log by trace ID
*LowCodeEngineApi.ProjectManagementApi* | [**projectApiTokensGet**](docs/ProjectManagementApi.md#projectApiTokensGet) | **GET** /project/api-tokens | Get all API tokens
*LowCodeEngineApi.ProjectManagementApi* | [**projectCreatePut**](docs/ProjectManagementApi.md#projectCreatePut) | **PUT** /project/create | Create project
*LowCodeEngineApi.ProjectManagementApi* | [**projectCreateWithoutDbPut**](docs/ProjectManagementApi.md#projectCreateWithoutDbPut) | **PUT** /project/create-without-db | Create project without database
*LowCodeEngineApi.ProjectManagementApi* | [**projectSettingsCreatePut**](docs/ProjectManagementApi.md#projectSettingsCreatePut) | **PUT** /project/settings/create | Create project setting
*LowCodeEngineApi.ProjectManagementApi* | [**projectSettingsDeleteKeyDelete**](docs/ProjectManagementApi.md#projectSettingsDeleteKeyDelete) | **DELETE** /project/settings/delete/{key} | Delete project setting
*LowCodeEngineApi.ProjectManagementApi* | [**projectSettingsGet**](docs/ProjectManagementApi.md#projectSettingsGet) | **GET** /project/settings | Get all project settings
*LowCodeEngineApi.QueriesApi* | [**queryCreatePost**](docs/QueriesApi.md#queryCreatePost) | **POST** /query/create | Create query
*LowCodeEngineApi.QueriesApi* | [**queryDeleteIdDelete**](docs/QueriesApi.md#queryDeleteIdDelete) | **DELETE** /query/delete/{id} | Delete query
*LowCodeEngineApi.QueriesApi* | [**queryRunIdPost**](docs/QueriesApi.md#queryRunIdPost) | **POST** /query/run/{id} | Run query
*LowCodeEngineApi.QueriesApi* | [**queryUpdateIdPost**](docs/QueriesApi.md#queryUpdateIdPost) | **POST** /query/update/{id} | Update query
*LowCodeEngineApi.RedisManagementApi* | [**redisNodeCreatePost**](docs/RedisManagementApi.md#redisNodeCreatePost) | **POST** /redis/node/create | Add Redis node
## Documentation for Models
- [LowCodeEngineApi.ApiTokenGeneratePostRequest](docs/ApiTokenGeneratePostRequest.md)
- [LowCodeEngineApi.CommandCreatePostRequest](docs/CommandCreatePostRequest.md)
- [LowCodeEngineApi.CommandUpdateIdPostRequest](docs/CommandUpdateIdPostRequest.md)
- [LowCodeEngineApi.Database](docs/Database.md)
- [LowCodeEngineApi.DatabaseCreatePostRequest](docs/DatabaseCreatePostRequest.md)
- [LowCodeEngineApi.DatabaseMigrationCreatePostRequest](docs/DatabaseMigrationCreatePostRequest.md)
- [LowCodeEngineApi.DatabaseNode](docs/DatabaseNode.md)
- [LowCodeEngineApi.DatabaseNodeCreatePostRequest](docs/DatabaseNodeCreatePostRequest.md)
- [LowCodeEngineApi.DatabaseQueryDatabaseIdPostRequest](docs/DatabaseQueryDatabaseIdPostRequest.md)
- [LowCodeEngineApi.Error](docs/Error.md)
- [LowCodeEngineApi.Function](docs/Function.md)
- [LowCodeEngineApi.FunctionsCreatePostRequest](docs/FunctionsCreatePostRequest.md)
- [LowCodeEngineApi.FunctionsDeletePostRequest](docs/FunctionsDeletePostRequest.md)
- [LowCodeEngineApi.Log](docs/Log.md)
- [LowCodeEngineApi.LogContentInner](docs/LogContentInner.md)
- [LowCodeEngineApi.LoggerIdFindAllPostRequest](docs/LoggerIdFindAllPostRequest.md)
- [LowCodeEngineApi.Migration](docs/Migration.md)
- [LowCodeEngineApi.Project](docs/Project.md)
- [LowCodeEngineApi.ProjectCreatePutRequest](docs/ProjectCreatePutRequest.md)
- [LowCodeEngineApi.ProjectSetting](docs/ProjectSetting.md)
- [LowCodeEngineApi.ProjectSettingsCreatePutRequest](docs/ProjectSettingsCreatePutRequest.md)
- [LowCodeEngineApi.Query](docs/Query.md)
- [LowCodeEngineApi.QueryCreatePostRequest](docs/QueryCreatePostRequest.md)
- [LowCodeEngineApi.QueryUpdateIdPostRequest](docs/QueryUpdateIdPostRequest.md)
- [LowCodeEngineApi.RedisNode](docs/RedisNode.md)
- [LowCodeEngineApi.RedisNodeCreatePostRequest](docs/RedisNodeCreatePostRequest.md)
- [LowCodeEngineApi.Token](docs/Token.md)
## Documentation for Authorization
Authentication schemes defined for the API:
### ApiKeyAuth
- **Type**: API key
- **API key parameter name**: Authorization
- **Location**: HTTP header
### AdminAuth
- **Type**: API key
- **API key parameter name**: x-admin-token
- **Location**: HTTP header
### QueryGuard
- **Type**: API key
- **API key parameter name**: x-query-access
- **Location**: HTTP header

View File

@ -1,122 +0,0 @@
# LowCodeEngineApi.APITokensApi
All URIs are relative to *http://localhost:3000*
Method | HTTP request | Description
------------- | ------------- | -------------
[**apiTokenGeneratePost**](APITokensApi.md#apiTokenGeneratePost) | **POST** /api/token/generate | Generate API token
[**apiTokenRevokeTokenDelete**](APITokensApi.md#apiTokenRevokeTokenDelete) | **DELETE** /api/token/revoke/{token} | Revoke API token
## apiTokenGeneratePost
> Token apiTokenGeneratePost(apiTokenGeneratePostRequest)
Generate API token
Generate a new API token for a project
### Example
```javascript
import LowCodeEngineApi from 'low_code_engine_api';
let defaultClient = LowCodeEngineApi.ApiClient.instance;
// Configure API key authorization: AdminAuth
let AdminAuth = defaultClient.authentications['AdminAuth'];
AdminAuth.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//AdminAuth.apiKeyPrefix = 'Token';
// Configure API key authorization: ApiKeyAuth
let ApiKeyAuth = defaultClient.authentications['ApiKeyAuth'];
ApiKeyAuth.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//ApiKeyAuth.apiKeyPrefix = 'Token';
let apiInstance = new LowCodeEngineApi.APITokensApi();
let apiTokenGeneratePostRequest = new LowCodeEngineApi.ApiTokenGeneratePostRequest(); // ApiTokenGeneratePostRequest |
apiInstance.apiTokenGeneratePost(apiTokenGeneratePostRequest, (error, data, response) => {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
});
```
### Parameters
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**apiTokenGeneratePostRequest** | [**ApiTokenGeneratePostRequest**](ApiTokenGeneratePostRequest.md)| |
### Return type
[**Token**](Token.md)
### Authorization
[AdminAuth](../README.md#AdminAuth), [ApiKeyAuth](../README.md#ApiKeyAuth)
### HTTP request headers
- **Content-Type**: application/json
- **Accept**: application/json
## apiTokenRevokeTokenDelete
> apiTokenRevokeTokenDelete(token)
Revoke API token
Revoke an existing API token
### Example
```javascript
import LowCodeEngineApi from 'low_code_engine_api';
let defaultClient = LowCodeEngineApi.ApiClient.instance;
// Configure API key authorization: AdminAuth
let AdminAuth = defaultClient.authentications['AdminAuth'];
AdminAuth.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//AdminAuth.apiKeyPrefix = 'Token';
// Configure API key authorization: ApiKeyAuth
let ApiKeyAuth = defaultClient.authentications['ApiKeyAuth'];
ApiKeyAuth.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//ApiKeyAuth.apiKeyPrefix = 'Token';
let apiInstance = new LowCodeEngineApi.APITokensApi();
let token = "token_example"; // String | Token to revoke
apiInstance.apiTokenRevokeTokenDelete(token, (error, data, response) => {
if (error) {
console.error(error);
} else {
console.log('API called successfully.');
}
});
```
### Parameters
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**token** | **String**| Token to revoke |
### Return type
null (empty response body)
### Authorization
[AdminAuth](../README.md#AdminAuth), [ApiKeyAuth](../README.md#ApiKeyAuth)
### HTTP request headers
- **Content-Type**: Not defined
- **Accept**: Not defined

View File

@ -1,9 +0,0 @@
# LowCodeEngineApi.ApiTokenGeneratePostRequest
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**id** | **String** | Project ID |

View File

@ -1,9 +0,0 @@
# LowCodeEngineApi.CommandCreatePostRequest
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**source** | **String** | Command source code |

View File

@ -1,9 +0,0 @@
# LowCodeEngineApi.CommandUpdateIdPostRequest
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**source** | **String** | Updated command source code | [optional]

View File

@ -1,239 +0,0 @@
# LowCodeEngineApi.CommandsApi
All URIs are relative to *http://localhost:3000*
Method | HTTP request | Description
------------- | ------------- | -------------
[**commandCreatePost**](CommandsApi.md#commandCreatePost) | **POST** /command/create | Create command
[**commandDeleteIdDelete**](CommandsApi.md#commandDeleteIdDelete) | **DELETE** /command/delete/{id} | Delete command
[**commandRunIdPost**](CommandsApi.md#commandRunIdPost) | **POST** /command/run/{id} | Run command
[**commandUpdateIdPost**](CommandsApi.md#commandUpdateIdPost) | **POST** /command/update/{id} | Update command
## commandCreatePost
> Query commandCreatePost(commandCreatePostRequest)
Create command
Create a new command in the project
### Example
```javascript
import LowCodeEngineApi from 'low_code_engine_api';
let defaultClient = LowCodeEngineApi.ApiClient.instance;
// Configure API key authorization: ApiKeyAuth
let ApiKeyAuth = defaultClient.authentications['ApiKeyAuth'];
ApiKeyAuth.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//ApiKeyAuth.apiKeyPrefix = 'Token';
let apiInstance = new LowCodeEngineApi.CommandsApi();
let commandCreatePostRequest = new LowCodeEngineApi.CommandCreatePostRequest(); // CommandCreatePostRequest |
apiInstance.commandCreatePost(commandCreatePostRequest, (error, data, response) => {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
});
```
### Parameters
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**commandCreatePostRequest** | [**CommandCreatePostRequest**](CommandCreatePostRequest.md)| |
### Return type
[**Query**](Query.md)
### Authorization
[ApiKeyAuth](../README.md#ApiKeyAuth)
### HTTP request headers
- **Content-Type**: application/json
- **Accept**: application/json
## commandDeleteIdDelete
> commandDeleteIdDelete(id)
Delete command
Delete an existing command
### Example
```javascript
import LowCodeEngineApi from 'low_code_engine_api';
let defaultClient = LowCodeEngineApi.ApiClient.instance;
// Configure API key authorization: QueryGuard
let QueryGuard = defaultClient.authentications['QueryGuard'];
QueryGuard.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//QueryGuard.apiKeyPrefix = 'Token';
// Configure API key authorization: ApiKeyAuth
let ApiKeyAuth = defaultClient.authentications['ApiKeyAuth'];
ApiKeyAuth.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//ApiKeyAuth.apiKeyPrefix = 'Token';
let apiInstance = new LowCodeEngineApi.CommandsApi();
let id = "id_example"; // String | Command ID
apiInstance.commandDeleteIdDelete(id, (error, data, response) => {
if (error) {
console.error(error);
} else {
console.log('API called successfully.');
}
});
```
### Parameters
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**id** | **String**| Command ID |
### Return type
null (empty response body)
### Authorization
[QueryGuard](../README.md#QueryGuard), [ApiKeyAuth](../README.md#ApiKeyAuth)
### HTTP request headers
- **Content-Type**: Not defined
- **Accept**: Not defined
## commandRunIdPost
> Object commandRunIdPost(id, body, opts)
Run command
Execute a command with provided data
### Example
```javascript
import LowCodeEngineApi from 'low_code_engine_api';
let defaultClient = LowCodeEngineApi.ApiClient.instance;
// Configure API key authorization: QueryGuard
let QueryGuard = defaultClient.authentications['QueryGuard'];
QueryGuard.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//QueryGuard.apiKeyPrefix = 'Token';
// Configure API key authorization: ApiKeyAuth
let ApiKeyAuth = defaultClient.authentications['ApiKeyAuth'];
ApiKeyAuth.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//ApiKeyAuth.apiKeyPrefix = 'Token';
let apiInstance = new LowCodeEngineApi.CommandsApi();
let id = "id_example"; // String | Command ID
let body = {key: null}; // Object |
let opts = {
'xTraceId': "xTraceId_example" // String | Trace ID for logging
};
apiInstance.commandRunIdPost(id, body, opts, (error, data, response) => {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
});
```
### Parameters
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**id** | **String**| Command ID |
**body** | **Object**| |
**xTraceId** | **String**| Trace ID for logging | [optional]
### Return type
**Object**
### Authorization
[QueryGuard](../README.md#QueryGuard), [ApiKeyAuth](../README.md#ApiKeyAuth)
### HTTP request headers
- **Content-Type**: application/json
- **Accept**: application/json
## commandUpdateIdPost
> Query commandUpdateIdPost(id, commandUpdateIdPostRequest)
Update command
Update an existing command
### Example
```javascript
import LowCodeEngineApi from 'low_code_engine_api';
let defaultClient = LowCodeEngineApi.ApiClient.instance;
// Configure API key authorization: QueryGuard
let QueryGuard = defaultClient.authentications['QueryGuard'];
QueryGuard.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//QueryGuard.apiKeyPrefix = 'Token';
// Configure API key authorization: ApiKeyAuth
let ApiKeyAuth = defaultClient.authentications['ApiKeyAuth'];
ApiKeyAuth.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//ApiKeyAuth.apiKeyPrefix = 'Token';
let apiInstance = new LowCodeEngineApi.CommandsApi();
let id = "id_example"; // String | Command ID
let commandUpdateIdPostRequest = new LowCodeEngineApi.CommandUpdateIdPostRequest(); // CommandUpdateIdPostRequest |
apiInstance.commandUpdateIdPost(id, commandUpdateIdPostRequest, (error, data, response) => {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
});
```
### Parameters
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**id** | **String**| Command ID |
**commandUpdateIdPostRequest** | [**CommandUpdateIdPostRequest**](CommandUpdateIdPostRequest.md)| |
### Return type
[**Query**](Query.md)
### Authorization
[QueryGuard](../README.md#QueryGuard), [ApiKeyAuth](../README.md#ApiKeyAuth)
### HTTP request headers
- **Content-Type**: application/json
- **Accept**: application/json

View File

@ -1,16 +0,0 @@
# LowCodeEngineApi.Database
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**id** | **String** | Unique database identifier | [optional]
**qUsername** | **String** | Query username for database access | [optional]
**cUsername** | **String** | Command username for database access | [optional]
**password** | **String** | Database password | [optional]
**database** | **String** | Database name | [optional]
**migrations** | [**[Migration]**](Migration.md) | | [optional]
**project** | [**Project**](Project.md) | | [optional]
**node** | [**DatabaseNode**](DatabaseNode.md) | | [optional]

View File

@ -1,9 +0,0 @@
# LowCodeEngineApi.DatabaseCreatePostRequest
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**projectId** | **String** | Project ID |

View File

@ -1,438 +0,0 @@
# LowCodeEngineApi.DatabaseManagementApi
All URIs are relative to *http://localhost:3000*
Method | HTTP request | Description
------------- | ------------- | -------------
[**databaseColumnsDatabaseIdTableNameGet**](DatabaseManagementApi.md#databaseColumnsDatabaseIdTableNameGet) | **GET** /database/columns/{databaseId}/{tableName} | Get table columns
[**databaseCreatePost**](DatabaseManagementApi.md#databaseCreatePost) | **POST** /database/create | Create database
[**databaseMigrationCreatePost**](DatabaseManagementApi.md#databaseMigrationCreatePost) | **POST** /database/migration/create | Create migration
[**databaseMigrationDownDatabaseIdGet**](DatabaseManagementApi.md#databaseMigrationDownDatabaseIdGet) | **GET** /database/migration/down/{databaseId} | Run migrations down
[**databaseMigrationUpDatabaseIdGet**](DatabaseManagementApi.md#databaseMigrationUpDatabaseIdGet) | **GET** /database/migration/up/{databaseId} | Run migrations up
[**databaseNodeCreatePost**](DatabaseManagementApi.md#databaseNodeCreatePost) | **POST** /database/node/create | Add database node
[**databaseQueryDatabaseIdPost**](DatabaseManagementApi.md#databaseQueryDatabaseIdPost) | **POST** /database/query/{databaseId} | Run database query
[**databaseTablesDatabaseIdGet**](DatabaseManagementApi.md#databaseTablesDatabaseIdGet) | **GET** /database/tables/{databaseId} | Get database tables
## databaseColumnsDatabaseIdTableNameGet
> [Object] databaseColumnsDatabaseIdTableNameGet(databaseId, tableName)
Get table columns
Retrieve columns information for a specific table
### Example
```javascript
import LowCodeEngineApi from 'low_code_engine_api';
let defaultClient = LowCodeEngineApi.ApiClient.instance;
// Configure API key authorization: ApiKeyAuth
let ApiKeyAuth = defaultClient.authentications['ApiKeyAuth'];
ApiKeyAuth.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//ApiKeyAuth.apiKeyPrefix = 'Token';
let apiInstance = new LowCodeEngineApi.DatabaseManagementApi();
let databaseId = "databaseId_example"; // String | Database ID
let tableName = "tableName_example"; // String | Table name
apiInstance.databaseColumnsDatabaseIdTableNameGet(databaseId, tableName, (error, data, response) => {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
});
```
### Parameters
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**databaseId** | **String**| Database ID |
**tableName** | **String**| Table name |
### Return type
**[Object]**
### Authorization
[ApiKeyAuth](../README.md#ApiKeyAuth)
### HTTP request headers
- **Content-Type**: Not defined
- **Accept**: application/json
## databaseCreatePost
> Database databaseCreatePost(databaseCreatePostRequest)
Create database
Create a new database for a project
### Example
```javascript
import LowCodeEngineApi from 'low_code_engine_api';
let defaultClient = LowCodeEngineApi.ApiClient.instance;
// Configure API key authorization: AdminAuth
let AdminAuth = defaultClient.authentications['AdminAuth'];
AdminAuth.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//AdminAuth.apiKeyPrefix = 'Token';
// Configure API key authorization: ApiKeyAuth
let ApiKeyAuth = defaultClient.authentications['ApiKeyAuth'];
ApiKeyAuth.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//ApiKeyAuth.apiKeyPrefix = 'Token';
let apiInstance = new LowCodeEngineApi.DatabaseManagementApi();
let databaseCreatePostRequest = new LowCodeEngineApi.DatabaseCreatePostRequest(); // DatabaseCreatePostRequest |
apiInstance.databaseCreatePost(databaseCreatePostRequest, (error, data, response) => {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
});
```
### Parameters
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**databaseCreatePostRequest** | [**DatabaseCreatePostRequest**](DatabaseCreatePostRequest.md)| |
### Return type
[**Database**](Database.md)
### Authorization
[AdminAuth](../README.md#AdminAuth), [ApiKeyAuth](../README.md#ApiKeyAuth)
### HTTP request headers
- **Content-Type**: application/json
- **Accept**: application/json
## databaseMigrationCreatePost
> Migration databaseMigrationCreatePost(databaseMigrationCreatePostRequest)
Create migration
Create a new database migration
### Example
```javascript
import LowCodeEngineApi from 'low_code_engine_api';
let defaultClient = LowCodeEngineApi.ApiClient.instance;
// Configure API key authorization: ApiKeyAuth
let ApiKeyAuth = defaultClient.authentications['ApiKeyAuth'];
ApiKeyAuth.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//ApiKeyAuth.apiKeyPrefix = 'Token';
let apiInstance = new LowCodeEngineApi.DatabaseManagementApi();
let databaseMigrationCreatePostRequest = new LowCodeEngineApi.DatabaseMigrationCreatePostRequest(); // DatabaseMigrationCreatePostRequest |
apiInstance.databaseMigrationCreatePost(databaseMigrationCreatePostRequest, (error, data, response) => {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
});
```
### Parameters
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**databaseMigrationCreatePostRequest** | [**DatabaseMigrationCreatePostRequest**](DatabaseMigrationCreatePostRequest.md)| |
### Return type
[**Migration**](Migration.md)
### Authorization
[ApiKeyAuth](../README.md#ApiKeyAuth)
### HTTP request headers
- **Content-Type**: application/json
- **Accept**: application/json
## databaseMigrationDownDatabaseIdGet
> databaseMigrationDownDatabaseIdGet(databaseId)
Run migrations down
Rollback database migrations
### Example
```javascript
import LowCodeEngineApi from 'low_code_engine_api';
let defaultClient = LowCodeEngineApi.ApiClient.instance;
// Configure API key authorization: ApiKeyAuth
let ApiKeyAuth = defaultClient.authentications['ApiKeyAuth'];
ApiKeyAuth.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//ApiKeyAuth.apiKeyPrefix = 'Token';
let apiInstance = new LowCodeEngineApi.DatabaseManagementApi();
let databaseId = "databaseId_example"; // String | Database ID
apiInstance.databaseMigrationDownDatabaseIdGet(databaseId, (error, data, response) => {
if (error) {
console.error(error);
} else {
console.log('API called successfully.');
}
});
```
### Parameters
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**databaseId** | **String**| Database ID |
### Return type
null (empty response body)
### Authorization
[ApiKeyAuth](../README.md#ApiKeyAuth)
### HTTP request headers
- **Content-Type**: Not defined
- **Accept**: Not defined
## databaseMigrationUpDatabaseIdGet
> databaseMigrationUpDatabaseIdGet(databaseId)
Run migrations up
Execute pending database migrations
### Example
```javascript
import LowCodeEngineApi from 'low_code_engine_api';
let defaultClient = LowCodeEngineApi.ApiClient.instance;
// Configure API key authorization: ApiKeyAuth
let ApiKeyAuth = defaultClient.authentications['ApiKeyAuth'];
ApiKeyAuth.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//ApiKeyAuth.apiKeyPrefix = 'Token';
let apiInstance = new LowCodeEngineApi.DatabaseManagementApi();
let databaseId = "databaseId_example"; // String | Database ID
apiInstance.databaseMigrationUpDatabaseIdGet(databaseId, (error, data, response) => {
if (error) {
console.error(error);
} else {
console.log('API called successfully.');
}
});
```
### Parameters
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**databaseId** | **String**| Database ID |
### Return type
null (empty response body)
### Authorization
[ApiKeyAuth](../README.md#ApiKeyAuth)
### HTTP request headers
- **Content-Type**: Not defined
- **Accept**: Not defined
## databaseNodeCreatePost
> DatabaseNode databaseNodeCreatePost(databaseNodeCreatePostRequest)
Add database node
Add a new database node to the system
### Example
```javascript
import LowCodeEngineApi from 'low_code_engine_api';
let defaultClient = LowCodeEngineApi.ApiClient.instance;
// Configure API key authorization: AdminAuth
let AdminAuth = defaultClient.authentications['AdminAuth'];
AdminAuth.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//AdminAuth.apiKeyPrefix = 'Token';
// Configure API key authorization: ApiKeyAuth
let ApiKeyAuth = defaultClient.authentications['ApiKeyAuth'];
ApiKeyAuth.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//ApiKeyAuth.apiKeyPrefix = 'Token';
let apiInstance = new LowCodeEngineApi.DatabaseManagementApi();
let databaseNodeCreatePostRequest = new LowCodeEngineApi.DatabaseNodeCreatePostRequest(); // DatabaseNodeCreatePostRequest |
apiInstance.databaseNodeCreatePost(databaseNodeCreatePostRequest, (error, data, response) => {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
});
```
### Parameters
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**databaseNodeCreatePostRequest** | [**DatabaseNodeCreatePostRequest**](DatabaseNodeCreatePostRequest.md)| |
### Return type
[**DatabaseNode**](DatabaseNode.md)
### Authorization
[AdminAuth](../README.md#AdminAuth), [ApiKeyAuth](../README.md#ApiKeyAuth)
### HTTP request headers
- **Content-Type**: application/json
- **Accept**: application/json
## databaseQueryDatabaseIdPost
> Object databaseQueryDatabaseIdPost(databaseId, databaseQueryDatabaseIdPostRequest)
Run database query
Execute a SQL query on the database
### Example
```javascript
import LowCodeEngineApi from 'low_code_engine_api';
let defaultClient = LowCodeEngineApi.ApiClient.instance;
// Configure API key authorization: ApiKeyAuth
let ApiKeyAuth = defaultClient.authentications['ApiKeyAuth'];
ApiKeyAuth.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//ApiKeyAuth.apiKeyPrefix = 'Token';
let apiInstance = new LowCodeEngineApi.DatabaseManagementApi();
let databaseId = "databaseId_example"; // String | Database ID
let databaseQueryDatabaseIdPostRequest = new LowCodeEngineApi.DatabaseQueryDatabaseIdPostRequest(); // DatabaseQueryDatabaseIdPostRequest |
apiInstance.databaseQueryDatabaseIdPost(databaseId, databaseQueryDatabaseIdPostRequest, (error, data, response) => {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
});
```
### Parameters
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**databaseId** | **String**| Database ID |
**databaseQueryDatabaseIdPostRequest** | [**DatabaseQueryDatabaseIdPostRequest**](DatabaseQueryDatabaseIdPostRequest.md)| |
### Return type
**Object**
### Authorization
[ApiKeyAuth](../README.md#ApiKeyAuth)
### HTTP request headers
- **Content-Type**: application/json
- **Accept**: application/json
## databaseTablesDatabaseIdGet
> [String] databaseTablesDatabaseIdGet(databaseId)
Get database tables
Retrieve list of tables in a database
### Example
```javascript
import LowCodeEngineApi from 'low_code_engine_api';
let defaultClient = LowCodeEngineApi.ApiClient.instance;
// Configure API key authorization: ApiKeyAuth
let ApiKeyAuth = defaultClient.authentications['ApiKeyAuth'];
ApiKeyAuth.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//ApiKeyAuth.apiKeyPrefix = 'Token';
let apiInstance = new LowCodeEngineApi.DatabaseManagementApi();
let databaseId = "databaseId_example"; // String | Database ID
apiInstance.databaseTablesDatabaseIdGet(databaseId, (error, data, response) => {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
});
```
### Parameters
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**databaseId** | **String**| Database ID |
### Return type
**[String]**
### Authorization
[ApiKeyAuth](../README.md#ApiKeyAuth)
### HTTP request headers
- **Content-Type**: Not defined
- **Accept**: application/json

View File

@ -1,11 +0,0 @@
# LowCodeEngineApi.DatabaseMigrationCreatePostRequest
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**up** | **String** | Migration up SQL |
**down** | **String** | Migration down SQL |
**databaseId** | **String** | Database ID |

View File

@ -1,14 +0,0 @@
# LowCodeEngineApi.DatabaseNode
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**id** | **String** | Unique database node identifier | [optional]
**host** | **String** | Database host | [optional]
**port** | **Number** | Database port | [optional]
**username** | **String** | Database username | [optional]
**password** | **String** | Database password | [optional]
**databases** | [**[Database]**](Database.md) | | [optional]

View File

@ -1,12 +0,0 @@
# LowCodeEngineApi.DatabaseNodeCreatePostRequest
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**host** | **String** | Database host |
**port** | **Number** | Database port |
**username** | **String** | Database username |
**password** | **String** | Database password |

View File

@ -1,9 +0,0 @@
# LowCodeEngineApi.DatabaseQueryDatabaseIdPostRequest
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**query** | **String** | SQL query to execute |

View File

@ -1,10 +0,0 @@
# LowCodeEngineApi.Error
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**error** | **String** | Error message | [optional]
**details** | **String** | Error details | [optional]

View File

@ -1,12 +0,0 @@
# LowCodeEngineApi.Function
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**id** | **String** | Unique function identifier | [optional]
**name** | **String** | Function name | [optional]
**source** | **String** | Function source code | [optional]
**project** | [**Project**](Project.md) | | [optional]

View File

@ -1,112 +0,0 @@
# LowCodeEngineApi.FunctionsApi
All URIs are relative to *http://localhost:3000*
Method | HTTP request | Description
------------- | ------------- | -------------
[**functionsCreatePost**](FunctionsApi.md#functionsCreatePost) | **POST** /functions/create | Create function
[**functionsDeletePost**](FunctionsApi.md#functionsDeletePost) | **POST** /functions/delete | Delete function
## functionsCreatePost
> Function functionsCreatePost(functionsCreatePostRequest)
Create function
Create a new function in the project
### Example
```javascript
import LowCodeEngineApi from 'low_code_engine_api';
let defaultClient = LowCodeEngineApi.ApiClient.instance;
// Configure API key authorization: ApiKeyAuth
let ApiKeyAuth = defaultClient.authentications['ApiKeyAuth'];
ApiKeyAuth.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//ApiKeyAuth.apiKeyPrefix = 'Token';
let apiInstance = new LowCodeEngineApi.FunctionsApi();
let functionsCreatePostRequest = new LowCodeEngineApi.FunctionsCreatePostRequest(); // FunctionsCreatePostRequest |
apiInstance.functionsCreatePost(functionsCreatePostRequest, (error, data, response) => {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
});
```
### Parameters
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**functionsCreatePostRequest** | [**FunctionsCreatePostRequest**](FunctionsCreatePostRequest.md)| |
### Return type
[**Function**](Function.md)
### Authorization
[ApiKeyAuth](../README.md#ApiKeyAuth)
### HTTP request headers
- **Content-Type**: application/json
- **Accept**: application/json
## functionsDeletePost
> functionsDeletePost(functionsDeletePostRequest)
Delete function
Delete a function from the project
### Example
```javascript
import LowCodeEngineApi from 'low_code_engine_api';
let defaultClient = LowCodeEngineApi.ApiClient.instance;
// Configure API key authorization: ApiKeyAuth
let ApiKeyAuth = defaultClient.authentications['ApiKeyAuth'];
ApiKeyAuth.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//ApiKeyAuth.apiKeyPrefix = 'Token';
let apiInstance = new LowCodeEngineApi.FunctionsApi();
let functionsDeletePostRequest = new LowCodeEngineApi.FunctionsDeletePostRequest(); // FunctionsDeletePostRequest |
apiInstance.functionsDeletePost(functionsDeletePostRequest, (error, data, response) => {
if (error) {
console.error(error);
} else {
console.log('API called successfully.');
}
});
```
### Parameters
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**functionsDeletePostRequest** | [**FunctionsDeletePostRequest**](FunctionsDeletePostRequest.md)| |
### Return type
null (empty response body)
### Authorization
[ApiKeyAuth](../README.md#ApiKeyAuth)
### HTTP request headers
- **Content-Type**: application/json
- **Accept**: Not defined

View File

@ -1,10 +0,0 @@
# LowCodeEngineApi.FunctionsCreatePostRequest
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**name** | **String** | Function name |
**source** | **String** | Function source code |

View File

@ -1,9 +0,0 @@
# LowCodeEngineApi.FunctionsDeletePostRequest
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**name** | **String** | Function name to delete |

View File

@ -1,20 +0,0 @@
# LowCodeEngineApi.Log
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**id** | **String** | Unique log identifier | [optional]
**traceId** | **String** | Trace ID for tracking requests | [optional]
**startTime** | **Number** | Request start timestamp | [optional]
**endTime** | **Number** | Request end timestamp | [optional]
**payload** | **Object** | Request payload | [optional]
**headers** | **Object** | Request headers | [optional]
**cookies** | **String** | Request cookies | [optional]
**url** | **String** | Request URL | [optional]
**response** | **Object** | Response data | [optional]
**content** | [**[LogContentInner]**](LogContentInner.md) | | [optional]
**project** | [**Project**](Project.md) | | [optional]
**query** | [**Query**](Query.md) | | [optional]

View File

@ -1,11 +0,0 @@
# LowCodeEngineApi.LogContentInner
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**content** | **String** | Log content | [optional]
**type** | **String** | Log type (info, error, warning) | [optional]
**timeStamp** | **Number** | Log entry timestamp | [optional]

View File

@ -1,14 +0,0 @@
# LowCodeEngineApi.LoggerIdFindAllPostRequest
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**traceId** | **String** | Filter by trace ID | [optional]
**fromDate** | **Date** | Filter from date | [optional]
**toDate** | **Date** | Filter to date | [optional]
**url** | **String** | Filter by URL | [optional]
**limit** | **Number** | Number of results to return |
**offset** | **Number** | Number of results to skip |

View File

@ -1,175 +0,0 @@
# LowCodeEngineApi.LoggingApi
All URIs are relative to *http://localhost:3000*
Method | HTTP request | Description
------------- | ------------- | -------------
[**loggerIdFindAllPost**](LoggingApi.md#loggerIdFindAllPost) | **POST** /logger/{id}/findAll | Find all logs
[**loggerIdFindPost**](LoggingApi.md#loggerIdFindPost) | **POST** /logger/{id}/find | Find logs for query
[**loggerIdTraceIdGet**](LoggingApi.md#loggerIdTraceIdGet) | **GET** /logger/{id}/{traceId} | Get log by trace ID
## loggerIdFindAllPost
> [Log] loggerIdFindAllPost(id, loggerIdFindAllPostRequest)
Find all logs
Find all logs for a project with filtering
### Example
```javascript
import LowCodeEngineApi from 'low_code_engine_api';
let defaultClient = LowCodeEngineApi.ApiClient.instance;
// Configure API key authorization: ApiKeyAuth
let ApiKeyAuth = defaultClient.authentications['ApiKeyAuth'];
ApiKeyAuth.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//ApiKeyAuth.apiKeyPrefix = 'Token';
let apiInstance = new LowCodeEngineApi.LoggingApi();
let id = "id_example"; // String | Project ID
let loggerIdFindAllPostRequest = new LowCodeEngineApi.LoggerIdFindAllPostRequest(); // LoggerIdFindAllPostRequest |
apiInstance.loggerIdFindAllPost(id, loggerIdFindAllPostRequest, (error, data, response) => {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
});
```
### Parameters
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**id** | **String**| Project ID |
**loggerIdFindAllPostRequest** | [**LoggerIdFindAllPostRequest**](LoggerIdFindAllPostRequest.md)| |
### Return type
[**[Log]**](Log.md)
### Authorization
[ApiKeyAuth](../README.md#ApiKeyAuth)
### HTTP request headers
- **Content-Type**: application/json
- **Accept**: application/json
## loggerIdFindPost
> [Log] loggerIdFindPost(id, loggerIdFindAllPostRequest)
Find logs for query
Find logs for a specific query with filtering
### Example
```javascript
import LowCodeEngineApi from 'low_code_engine_api';
let defaultClient = LowCodeEngineApi.ApiClient.instance;
// Configure API key authorization: QueryGuard
let QueryGuard = defaultClient.authentications['QueryGuard'];
QueryGuard.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//QueryGuard.apiKeyPrefix = 'Token';
// Configure API key authorization: ApiKeyAuth
let ApiKeyAuth = defaultClient.authentications['ApiKeyAuth'];
ApiKeyAuth.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//ApiKeyAuth.apiKeyPrefix = 'Token';
let apiInstance = new LowCodeEngineApi.LoggingApi();
let id = "id_example"; // String | Query ID
let loggerIdFindAllPostRequest = new LowCodeEngineApi.LoggerIdFindAllPostRequest(); // LoggerIdFindAllPostRequest |
apiInstance.loggerIdFindPost(id, loggerIdFindAllPostRequest, (error, data, response) => {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
});
```
### Parameters
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**id** | **String**| Query ID |
**loggerIdFindAllPostRequest** | [**LoggerIdFindAllPostRequest**](LoggerIdFindAllPostRequest.md)| |
### Return type
[**[Log]**](Log.md)
### Authorization
[QueryGuard](../README.md#QueryGuard), [ApiKeyAuth](../README.md#ApiKeyAuth)
### HTTP request headers
- **Content-Type**: application/json
- **Accept**: application/json
## loggerIdTraceIdGet
> Log loggerIdTraceIdGet(id, traceId)
Get log by trace ID
Retrieve log entries by trace ID
### Example
```javascript
import LowCodeEngineApi from 'low_code_engine_api';
let defaultClient = LowCodeEngineApi.ApiClient.instance;
// Configure API key authorization: ApiKeyAuth
let ApiKeyAuth = defaultClient.authentications['ApiKeyAuth'];
ApiKeyAuth.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//ApiKeyAuth.apiKeyPrefix = 'Token';
let apiInstance = new LowCodeEngineApi.LoggingApi();
let id = "id_example"; // String | Log ID
let traceId = "traceId_example"; // String | Trace ID
apiInstance.loggerIdTraceIdGet(id, traceId, (error, data, response) => {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
});
```
### Parameters
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**id** | **String**| Log ID |
**traceId** | **String**| Trace ID |
### Return type
[**Log**](Log.md)
### Authorization
[ApiKeyAuth](../README.md#ApiKeyAuth)
### HTTP request headers
- **Content-Type**: Not defined
- **Accept**: application/json

View File

@ -1,12 +0,0 @@
# LowCodeEngineApi.Migration
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**id** | **String** | Unique migration identifier | [optional]
**up** | **String** | Migration up SQL | [optional]
**down** | **String** | Migration down SQL | [optional]
**database** | [**Database**](Database.md) | | [optional]

View File

@ -1,15 +0,0 @@
# LowCodeEngineApi.Project
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**id** | **String** | Unique project identifier | [optional]
**name** | **String** | Project name | [optional]
**apiTokens** | [**[Token]**](Token.md) | | [optional]
**database** | [**Database**](Database.md) | | [optional]
**queries** | [**[Query]**](Query.md) | | [optional]
**functions** | [**[Function]**](Function.md) | | [optional]
**settings** | [**[ProjectSetting]**](ProjectSetting.md) | | [optional]

View File

@ -1,9 +0,0 @@
# LowCodeEngineApi.ProjectCreatePutRequest
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**name** | **String** | Project name |

View File

@ -1,322 +0,0 @@
# LowCodeEngineApi.ProjectManagementApi
All URIs are relative to *http://localhost:3000*
Method | HTTP request | Description
------------- | ------------- | -------------
[**projectApiTokensGet**](ProjectManagementApi.md#projectApiTokensGet) | **GET** /project/api-tokens | Get all API tokens
[**projectCreatePut**](ProjectManagementApi.md#projectCreatePut) | **PUT** /project/create | Create project
[**projectCreateWithoutDbPut**](ProjectManagementApi.md#projectCreateWithoutDbPut) | **PUT** /project/create-without-db | Create project without database
[**projectSettingsCreatePut**](ProjectManagementApi.md#projectSettingsCreatePut) | **PUT** /project/settings/create | Create project setting
[**projectSettingsDeleteKeyDelete**](ProjectManagementApi.md#projectSettingsDeleteKeyDelete) | **DELETE** /project/settings/delete/{key} | Delete project setting
[**projectSettingsGet**](ProjectManagementApi.md#projectSettingsGet) | **GET** /project/settings | Get all project settings
## projectApiTokensGet
> [Token] projectApiTokensGet()
Get all API tokens
Retrieve all API tokens for the current project
### Example
```javascript
import LowCodeEngineApi from 'low_code_engine_api';
let defaultClient = LowCodeEngineApi.ApiClient.instance;
// Configure API key authorization: AdminAuth
let AdminAuth = defaultClient.authentications['AdminAuth'];
AdminAuth.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//AdminAuth.apiKeyPrefix = 'Token';
// Configure API key authorization: ApiKeyAuth
let ApiKeyAuth = defaultClient.authentications['ApiKeyAuth'];
ApiKeyAuth.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//ApiKeyAuth.apiKeyPrefix = 'Token';
let apiInstance = new LowCodeEngineApi.ProjectManagementApi();
apiInstance.projectApiTokensGet((error, data, response) => {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
});
```
### Parameters
This endpoint does not need any parameter.
### Return type
[**[Token]**](Token.md)
### Authorization
[AdminAuth](../README.md#AdminAuth), [ApiKeyAuth](../README.md#ApiKeyAuth)
### HTTP request headers
- **Content-Type**: Not defined
- **Accept**: application/json
## projectCreatePut
> Project projectCreatePut(projectCreatePutRequest)
Create project
Create a new project with database
### Example
```javascript
import LowCodeEngineApi from 'low_code_engine_api';
let defaultClient = LowCodeEngineApi.ApiClient.instance;
// Configure API key authorization: ApiKeyAuth
let ApiKeyAuth = defaultClient.authentications['ApiKeyAuth'];
ApiKeyAuth.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//ApiKeyAuth.apiKeyPrefix = 'Token';
let apiInstance = new LowCodeEngineApi.ProjectManagementApi();
let projectCreatePutRequest = new LowCodeEngineApi.ProjectCreatePutRequest(); // ProjectCreatePutRequest |
apiInstance.projectCreatePut(projectCreatePutRequest, (error, data, response) => {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
});
```
### Parameters
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**projectCreatePutRequest** | [**ProjectCreatePutRequest**](ProjectCreatePutRequest.md)| |
### Return type
[**Project**](Project.md)
### Authorization
[ApiKeyAuth](../README.md#ApiKeyAuth)
### HTTP request headers
- **Content-Type**: application/json
- **Accept**: application/json
## projectCreateWithoutDbPut
> Project projectCreateWithoutDbPut(projectCreatePutRequest)
Create project without database
Create a new project without creating a database
### Example
```javascript
import LowCodeEngineApi from 'low_code_engine_api';
let defaultClient = LowCodeEngineApi.ApiClient.instance;
// Configure API key authorization: AdminAuth
let AdminAuth = defaultClient.authentications['AdminAuth'];
AdminAuth.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//AdminAuth.apiKeyPrefix = 'Token';
// Configure API key authorization: ApiKeyAuth
let ApiKeyAuth = defaultClient.authentications['ApiKeyAuth'];
ApiKeyAuth.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//ApiKeyAuth.apiKeyPrefix = 'Token';
let apiInstance = new LowCodeEngineApi.ProjectManagementApi();
let projectCreatePutRequest = new LowCodeEngineApi.ProjectCreatePutRequest(); // ProjectCreatePutRequest |
apiInstance.projectCreateWithoutDbPut(projectCreatePutRequest, (error, data, response) => {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
});
```
### Parameters
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**projectCreatePutRequest** | [**ProjectCreatePutRequest**](ProjectCreatePutRequest.md)| |
### Return type
[**Project**](Project.md)
### Authorization
[AdminAuth](../README.md#AdminAuth), [ApiKeyAuth](../README.md#ApiKeyAuth)
### HTTP request headers
- **Content-Type**: application/json
- **Accept**: application/json
## projectSettingsCreatePut
> ProjectSetting projectSettingsCreatePut(projectSettingsCreatePutRequest)
Create project setting
Create a new project setting
### Example
```javascript
import LowCodeEngineApi from 'low_code_engine_api';
let defaultClient = LowCodeEngineApi.ApiClient.instance;
// Configure API key authorization: ApiKeyAuth
let ApiKeyAuth = defaultClient.authentications['ApiKeyAuth'];
ApiKeyAuth.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//ApiKeyAuth.apiKeyPrefix = 'Token';
let apiInstance = new LowCodeEngineApi.ProjectManagementApi();
let projectSettingsCreatePutRequest = new LowCodeEngineApi.ProjectSettingsCreatePutRequest(); // ProjectSettingsCreatePutRequest |
apiInstance.projectSettingsCreatePut(projectSettingsCreatePutRequest, (error, data, response) => {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
});
```
### Parameters
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**projectSettingsCreatePutRequest** | [**ProjectSettingsCreatePutRequest**](ProjectSettingsCreatePutRequest.md)| |
### Return type
[**ProjectSetting**](ProjectSetting.md)
### Authorization
[ApiKeyAuth](../README.md#ApiKeyAuth)
### HTTP request headers
- **Content-Type**: application/json
- **Accept**: application/json
## projectSettingsDeleteKeyDelete
> projectSettingsDeleteKeyDelete(key)
Delete project setting
Delete a project setting by key
### Example
```javascript
import LowCodeEngineApi from 'low_code_engine_api';
let defaultClient = LowCodeEngineApi.ApiClient.instance;
// Configure API key authorization: ApiKeyAuth
let ApiKeyAuth = defaultClient.authentications['ApiKeyAuth'];
ApiKeyAuth.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//ApiKeyAuth.apiKeyPrefix = 'Token';
let apiInstance = new LowCodeEngineApi.ProjectManagementApi();
let key = "key_example"; // String | Setting key to delete
apiInstance.projectSettingsDeleteKeyDelete(key, (error, data, response) => {
if (error) {
console.error(error);
} else {
console.log('API called successfully.');
}
});
```
### Parameters
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**key** | **String**| Setting key to delete |
### Return type
null (empty response body)
### Authorization
[ApiKeyAuth](../README.md#ApiKeyAuth)
### HTTP request headers
- **Content-Type**: Not defined
- **Accept**: Not defined
## projectSettingsGet
> [ProjectSetting] projectSettingsGet()
Get all project settings
Retrieve all settings for the current project
### Example
```javascript
import LowCodeEngineApi from 'low_code_engine_api';
let defaultClient = LowCodeEngineApi.ApiClient.instance;
// Configure API key authorization: ApiKeyAuth
let ApiKeyAuth = defaultClient.authentications['ApiKeyAuth'];
ApiKeyAuth.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//ApiKeyAuth.apiKeyPrefix = 'Token';
let apiInstance = new LowCodeEngineApi.ProjectManagementApi();
apiInstance.projectSettingsGet((error, data, response) => {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
});
```
### Parameters
This endpoint does not need any parameter.
### Return type
[**[ProjectSetting]**](ProjectSetting.md)
### Authorization
[ApiKeyAuth](../README.md#ApiKeyAuth)
### HTTP request headers
- **Content-Type**: Not defined
- **Accept**: application/json

View File

@ -1,12 +0,0 @@
# LowCodeEngineApi.ProjectSetting
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**id** | **String** | Unique setting identifier | [optional]
**key** | **String** | Setting key | [optional]
**value** | **String** | Setting value | [optional]
**project** | [**Project**](Project.md) | | [optional]

View File

@ -1,10 +0,0 @@
# LowCodeEngineApi.ProjectSettingsCreatePutRequest
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**key** | **String** | Setting key |
**value** | **String** | Setting value |

View File

@ -1,239 +0,0 @@
# LowCodeEngineApi.QueriesApi
All URIs are relative to *http://localhost:3000*
Method | HTTP request | Description
------------- | ------------- | -------------
[**queryCreatePost**](QueriesApi.md#queryCreatePost) | **POST** /query/create | Create query
[**queryDeleteIdDelete**](QueriesApi.md#queryDeleteIdDelete) | **DELETE** /query/delete/{id} | Delete query
[**queryRunIdPost**](QueriesApi.md#queryRunIdPost) | **POST** /query/run/{id} | Run query
[**queryUpdateIdPost**](QueriesApi.md#queryUpdateIdPost) | **POST** /query/update/{id} | Update query
## queryCreatePost
> Query queryCreatePost(queryCreatePostRequest)
Create query
Create a new query in the project
### Example
```javascript
import LowCodeEngineApi from 'low_code_engine_api';
let defaultClient = LowCodeEngineApi.ApiClient.instance;
// Configure API key authorization: ApiKeyAuth
let ApiKeyAuth = defaultClient.authentications['ApiKeyAuth'];
ApiKeyAuth.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//ApiKeyAuth.apiKeyPrefix = 'Token';
let apiInstance = new LowCodeEngineApi.QueriesApi();
let queryCreatePostRequest = new LowCodeEngineApi.QueryCreatePostRequest(); // QueryCreatePostRequest |
apiInstance.queryCreatePost(queryCreatePostRequest, (error, data, response) => {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
});
```
### Parameters
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**queryCreatePostRequest** | [**QueryCreatePostRequest**](QueryCreatePostRequest.md)| |
### Return type
[**Query**](Query.md)
### Authorization
[ApiKeyAuth](../README.md#ApiKeyAuth)
### HTTP request headers
- **Content-Type**: application/json
- **Accept**: application/json
## queryDeleteIdDelete
> queryDeleteIdDelete(id)
Delete query
Delete an existing query
### Example
```javascript
import LowCodeEngineApi from 'low_code_engine_api';
let defaultClient = LowCodeEngineApi.ApiClient.instance;
// Configure API key authorization: QueryGuard
let QueryGuard = defaultClient.authentications['QueryGuard'];
QueryGuard.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//QueryGuard.apiKeyPrefix = 'Token';
// Configure API key authorization: ApiKeyAuth
let ApiKeyAuth = defaultClient.authentications['ApiKeyAuth'];
ApiKeyAuth.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//ApiKeyAuth.apiKeyPrefix = 'Token';
let apiInstance = new LowCodeEngineApi.QueriesApi();
let id = "id_example"; // String | Query ID
apiInstance.queryDeleteIdDelete(id, (error, data, response) => {
if (error) {
console.error(error);
} else {
console.log('API called successfully.');
}
});
```
### Parameters
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**id** | **String**| Query ID |
### Return type
null (empty response body)
### Authorization
[QueryGuard](../README.md#QueryGuard), [ApiKeyAuth](../README.md#ApiKeyAuth)
### HTTP request headers
- **Content-Type**: Not defined
- **Accept**: Not defined
## queryRunIdPost
> Object queryRunIdPost(id, body, opts)
Run query
Execute a query with provided data
### Example
```javascript
import LowCodeEngineApi from 'low_code_engine_api';
let defaultClient = LowCodeEngineApi.ApiClient.instance;
// Configure API key authorization: QueryGuard
let QueryGuard = defaultClient.authentications['QueryGuard'];
QueryGuard.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//QueryGuard.apiKeyPrefix = 'Token';
// Configure API key authorization: ApiKeyAuth
let ApiKeyAuth = defaultClient.authentications['ApiKeyAuth'];
ApiKeyAuth.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//ApiKeyAuth.apiKeyPrefix = 'Token';
let apiInstance = new LowCodeEngineApi.QueriesApi();
let id = "id_example"; // String | Query ID
let body = {key: null}; // Object |
let opts = {
'xTraceId': "xTraceId_example" // String | Trace ID for logging
};
apiInstance.queryRunIdPost(id, body, opts, (error, data, response) => {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
});
```
### Parameters
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**id** | **String**| Query ID |
**body** | **Object**| |
**xTraceId** | **String**| Trace ID for logging | [optional]
### Return type
**Object**
### Authorization
[QueryGuard](../README.md#QueryGuard), [ApiKeyAuth](../README.md#ApiKeyAuth)
### HTTP request headers
- **Content-Type**: application/json
- **Accept**: application/json
## queryUpdateIdPost
> Query queryUpdateIdPost(id, queryUpdateIdPostRequest)
Update query
Update an existing query
### Example
```javascript
import LowCodeEngineApi from 'low_code_engine_api';
let defaultClient = LowCodeEngineApi.ApiClient.instance;
// Configure API key authorization: QueryGuard
let QueryGuard = defaultClient.authentications['QueryGuard'];
QueryGuard.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//QueryGuard.apiKeyPrefix = 'Token';
// Configure API key authorization: ApiKeyAuth
let ApiKeyAuth = defaultClient.authentications['ApiKeyAuth'];
ApiKeyAuth.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//ApiKeyAuth.apiKeyPrefix = 'Token';
let apiInstance = new LowCodeEngineApi.QueriesApi();
let id = "id_example"; // String | Query ID
let queryUpdateIdPostRequest = new LowCodeEngineApi.QueryUpdateIdPostRequest(); // QueryUpdateIdPostRequest |
apiInstance.queryUpdateIdPost(id, queryUpdateIdPostRequest, (error, data, response) => {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
});
```
### Parameters
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**id** | **String**| Query ID |
**queryUpdateIdPostRequest** | [**QueryUpdateIdPostRequest**](QueryUpdateIdPostRequest.md)| |
### Return type
[**Query**](Query.md)
### Authorization
[QueryGuard](../README.md#QueryGuard), [ApiKeyAuth](../README.md#ApiKeyAuth)
### HTTP request headers
- **Content-Type**: application/json
- **Accept**: application/json

View File

@ -1,14 +0,0 @@
# LowCodeEngineApi.Query
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**id** | **String** | Unique query identifier | [optional]
**source** | **String** | Query source code | [optional]
**isActive** | **Number** | Whether the query is active (1 &#x3D; active, 0 &#x3D; inactive) | [optional]
**isCommand** | **Number** | Whether this is a command (1 &#x3D; command, 0 &#x3D; query) | [optional]
**project** | [**Project**](Project.md) | | [optional]
**logs** | [**[Log]**](Log.md) | | [optional]

View File

@ -1,9 +0,0 @@
# LowCodeEngineApi.QueryCreatePostRequest
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**source** | **String** | Query source code |

View File

@ -1,9 +0,0 @@
# LowCodeEngineApi.QueryUpdateIdPostRequest
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**source** | **String** | Updated query source code | [optional]

View File

@ -1,65 +0,0 @@
# LowCodeEngineApi.RedisManagementApi
All URIs are relative to *http://localhost:3000*
Method | HTTP request | Description
------------- | ------------- | -------------
[**redisNodeCreatePost**](RedisManagementApi.md#redisNodeCreatePost) | **POST** /redis/node/create | Add Redis node
## redisNodeCreatePost
> RedisNode redisNodeCreatePost(redisNodeCreatePostRequest)
Add Redis node
Add a new Redis node to the system
### Example
```javascript
import LowCodeEngineApi from 'low_code_engine_api';
let defaultClient = LowCodeEngineApi.ApiClient.instance;
// Configure API key authorization: AdminAuth
let AdminAuth = defaultClient.authentications['AdminAuth'];
AdminAuth.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//AdminAuth.apiKeyPrefix = 'Token';
// Configure API key authorization: ApiKeyAuth
let ApiKeyAuth = defaultClient.authentications['ApiKeyAuth'];
ApiKeyAuth.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//ApiKeyAuth.apiKeyPrefix = 'Token';
let apiInstance = new LowCodeEngineApi.RedisManagementApi();
let redisNodeCreatePostRequest = new LowCodeEngineApi.RedisNodeCreatePostRequest(); // RedisNodeCreatePostRequest |
apiInstance.redisNodeCreatePost(redisNodeCreatePostRequest, (error, data, response) => {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
});
```
### Parameters
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**redisNodeCreatePostRequest** | [**RedisNodeCreatePostRequest**](RedisNodeCreatePostRequest.md)| |
### Return type
[**RedisNode**](RedisNode.md)
### Authorization
[AdminAuth](../README.md#AdminAuth), [ApiKeyAuth](../README.md#ApiKeyAuth)
### HTTP request headers
- **Content-Type**: application/json
- **Accept**: application/json

View File

@ -1,14 +0,0 @@
# LowCodeEngineApi.RedisNode
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**id** | **String** | Unique Redis node identifier | [optional]
**host** | **String** | Redis host | [optional]
**port** | **Number** | Redis port | [optional]
**user** | **String** | Redis username | [optional]
**password** | **String** | Redis password | [optional]
**projects** | [**[Project]**](Project.md) | | [optional]

View File

@ -1,12 +0,0 @@
# LowCodeEngineApi.RedisNodeCreatePostRequest
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**host** | **String** | Redis host |
**port** | **Number** | Redis port |
**user** | **String** | Redis username |
**password** | **String** | Redis password |

View File

@ -1,12 +0,0 @@
# LowCodeEngineApi.Token
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**token** | **String** | Unique token identifier | [optional]
**isActive** | **Boolean** | Whether the token is active | [optional]
**isAdmin** | **Boolean** | Whether the token has admin privileges | [optional]
**project** | [**Project**](Project.md) | | [optional]

View File

@ -1,57 +0,0 @@
#!/bin/sh
# ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/
#
# Usage example: /bin/sh ./git_push.sh wing328 openapi-petstore-perl "minor update" "gitlab.com"
git_user_id=$1
git_repo_id=$2
release_note=$3
git_host=$4
if [ "$git_host" = "" ]; then
git_host="github.com"
echo "[INFO] No command line input provided. Set \$git_host to $git_host"
fi
if [ "$git_user_id" = "" ]; then
git_user_id="GIT_USER_ID"
echo "[INFO] No command line input provided. Set \$git_user_id to $git_user_id"
fi
if [ "$git_repo_id" = "" ]; then
git_repo_id="GIT_REPO_ID"
echo "[INFO] No command line input provided. Set \$git_repo_id to $git_repo_id"
fi
if [ "$release_note" = "" ]; then
release_note="Minor update"
echo "[INFO] No command line input provided. Set \$release_note to $release_note"
fi
# Initialize the local directory as a Git repository
git init
# Adds the files in the local repository and stages them for commit.
git add .
# Commits the tracked changes and prepares them to be pushed to a remote repository.
git commit -m "$release_note"
# Sets the new remote
git_remote=$(git remote)
if [ "$git_remote" = "" ]; then # git remote not defined
if [ "$GIT_TOKEN" = "" ]; then
echo "[INFO] \$GIT_TOKEN (environment variable) is not set. Using the git credential in your environment."
git remote add origin https://${git_host}/${git_user_id}/${git_repo_id}.git
else
git remote add origin https://${git_user_id}:"${GIT_TOKEN}"@${git_host}/${git_user_id}/${git_repo_id}.git
fi
fi
git pull origin master
# Pushes (Forces) the changes in the local repository up to the remote repository
echo "Git pushing to https://${git_host}/${git_user_id}/${git_repo_id}.git"
git push origin master 2>&1 | grep -v 'To https'

View File

@ -1 +0,0 @@
--timeout 10000

View File

@ -1,46 +0,0 @@
{
"name": "low_code_engine_api",
"version": "1.0.0",
"description": "API documentation for the Low-Code Engine platform that provides query execution, database management, and project administration capabilities.",
"license": "Unlicense",
"main": "dist/index.js",
"scripts": {
"build": "babel src -d dist",
"prepare": "npm run build",
"test": "mocha --require @babel/register --recursive"
},
"browser": {
"fs": false
},
"dependencies": {
"@babel/cli": "^7.0.0",
"superagent": "^5.3.0"
},
"devDependencies": {
"@babel/core": "^7.0.0",
"@babel/plugin-proposal-class-properties": "^7.0.0",
"@babel/plugin-proposal-decorators": "^7.0.0",
"@babel/plugin-proposal-do-expressions": "^7.0.0",
"@babel/plugin-proposal-export-default-from": "^7.0.0",
"@babel/plugin-proposal-export-namespace-from": "^7.0.0",
"@babel/plugin-proposal-function-bind": "^7.0.0",
"@babel/plugin-proposal-function-sent": "^7.0.0",
"@babel/plugin-proposal-json-strings": "^7.0.0",
"@babel/plugin-proposal-logical-assignment-operators": "^7.0.0",
"@babel/plugin-proposal-nullish-coalescing-operator": "^7.0.0",
"@babel/plugin-proposal-numeric-separator": "^7.0.0",
"@babel/plugin-proposal-optional-chaining": "^7.0.0",
"@babel/plugin-proposal-pipeline-operator": "^7.0.0",
"@babel/plugin-proposal-throw-expressions": "^7.0.0",
"@babel/plugin-syntax-dynamic-import": "^7.0.0",
"@babel/plugin-syntax-import-meta": "^7.0.0",
"@babel/preset-env": "^7.0.0",
"@babel/register": "^7.0.0",
"expect.js": "^0.3.1",
"mocha": "^8.0.1",
"sinon": "^7.2.0"
},
"files": [
"dist"
]
}

View File

@ -1,696 +0,0 @@
/**
* Low-Code Engine API
* API documentation for the Low-Code Engine platform that provides query execution, database management, and project administration capabilities.
*
* The version of the OpenAPI document: 1.0.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*
*/
import superagent from "superagent";
/**
* @module ApiClient
* @version 1.0.0
*/
/**
* Manages low level client-server communications, parameter marshalling, etc. There should not be any need for an
* application to use this class directly - the *Api and model classes provide the public API for the service. The
* contents of this file should be regarded as internal but are documented for completeness.
* @alias module:ApiClient
* @class
*/
class ApiClient {
/**
* The base URL against which to resolve every API call's (relative) path.
* Overrides the default value set in spec file if present
* @param {String} basePath
*/
constructor(basePath = 'http://localhost:3000') {
/**
* The base URL against which to resolve every API call's (relative) path.
* @type {String}
* @default http://localhost:3000
*/
this.basePath = basePath.replace(/\/+$/, '');
/**
* The authentication methods to be included for all API calls.
* @type {Array.<String>}
*/
this.authentications = {
'ApiKeyAuth': {type: 'apiKey', 'in': 'header', name: 'Authorization'},
'AdminAuth': {type: 'apiKey', 'in': 'header', name: 'x-admin-token'},
'QueryGuard': {type: 'apiKey', 'in': 'header', name: 'x-query-access'}
}
/**
* The default HTTP headers to be included for all API calls.
* @type {Array.<String>}
* @default {}
*/
this.defaultHeaders = {
'User-Agent': 'OpenAPI-Generator/1.0.0/Javascript'
};
/**
* The default HTTP timeout for all API calls.
* @type {Number}
* @default 60000
*/
this.timeout = 60000;
/**
* If set to false an additional timestamp parameter is added to all API GET calls to
* prevent browser caching
* @type {Boolean}
* @default true
*/
this.cache = true;
/**
* If set to true, the client will save the cookies from each server
* response, and return them in the next request.
* @default false
*/
this.enableCookies = false;
/*
* Used to save and return cookies in a node.js (non-browser) setting,
* if this.enableCookies is set to true.
*/
if (typeof window === 'undefined') {
this.agent = new superagent.agent();
}
/*
* Allow user to override superagent agent
*/
this.requestAgent = null;
/*
* Allow user to add superagent plugins
*/
this.plugins = null;
}
/**
* Returns a string representation for an actual parameter.
* @param param The actual parameter.
* @returns {String} The string representation of <code>param</code>.
*/
paramToString(param) {
if (param == undefined || param == null) {
return '';
}
if (param instanceof Date) {
return param.toJSON();
}
if (ApiClient.canBeJsonified(param)) {
return JSON.stringify(param);
}
return param.toString();
}
/**
* Returns a boolean indicating if the parameter could be JSON.stringified
* @param param The actual parameter
* @returns {Boolean} Flag indicating if <code>param</code> can be JSON.stringified
*/
static canBeJsonified(str) {
if (typeof str !== 'string' && typeof str !== 'object') return false;
try {
const type = str.toString();
return type === '[object Object]'
|| type === '[object Array]';
} catch (err) {
return false;
}
};
/**
* Builds full URL by appending the given path to the base URL and replacing path parameter place-holders with parameter values.
* NOTE: query parameters are not handled here.
* @param {String} path The path to append to the base URL.
* @param {Object} pathParams The parameter values to append.
* @param {String} apiBasePath Base path defined in the path, operation level to override the default one
* @returns {String} The encoded path with parameter values substituted.
*/
buildUrl(path, pathParams, apiBasePath) {
if (!path.match(/^\//)) {
path = '/' + path;
}
var url = this.basePath + path;
// use API (operation, path) base path if defined
if (apiBasePath !== null && apiBasePath !== undefined) {
url = apiBasePath + path;
}
url = url.replace(/\{([\w-\.#]+)\}/g, (fullMatch, key) => {
var value;
if (pathParams.hasOwnProperty(key)) {
value = this.paramToString(pathParams[key]);
} else {
value = fullMatch;
}
return encodeURIComponent(value);
});
return url;
}
/**
* Checks whether the given content type represents JSON.<br>
* JSON content type examples:<br>
* <ul>
* <li>application/json</li>
* <li>application/json; charset=UTF8</li>
* <li>APPLICATION/JSON</li>
* </ul>
* @param {String} contentType The MIME content type to check.
* @returns {Boolean} <code>true</code> if <code>contentType</code> represents JSON, otherwise <code>false</code>.
*/
isJsonMime(contentType) {
return Boolean(contentType != null && contentType.match(/^application\/json(;.*)?$/i));
}
/**
* Chooses a content type from the given array, with JSON preferred; i.e. return JSON if included, otherwise return the first.
* @param {Array.<String>} contentTypes
* @returns {String} The chosen content type, preferring JSON.
*/
jsonPreferredMime(contentTypes) {
for (var i = 0; i < contentTypes.length; i++) {
if (this.isJsonMime(contentTypes[i])) {
return contentTypes[i];
}
}
return contentTypes[0];
}
/**
* Checks whether the given parameter value represents file-like content.
* @param param The parameter to check.
* @returns {Boolean} <code>true</code> if <code>param</code> represents a file.
*/
isFileParam(param) {
// fs.ReadStream in Node.js and Electron (but not in runtime like browserify)
if (typeof require === 'function') {
let fs;
try {
fs = require('fs');
} catch (err) {}
if (fs && fs.ReadStream && param instanceof fs.ReadStream) {
return true;
}
}
// Buffer in Node.js
if (typeof Buffer === 'function' && param instanceof Buffer) {
return true;
}
// Blob in browser
if (typeof Blob === 'function' && param instanceof Blob) {
return true;
}
// File in browser (it seems File object is also instance of Blob, but keep this for safe)
if (typeof File === 'function' && param instanceof File) {
return true;
}
return false;
}
/**
* Normalizes parameter values:
* <ul>
* <li>remove nils</li>
* <li>keep files and arrays</li>
* <li>format to string with `paramToString` for other cases</li>
* </ul>
* @param {Object.<String, Object>} params The parameters as object properties.
* @returns {Object.<String, Object>} normalized parameters.
*/
normalizeParams(params) {
var newParams = {};
for (var key in params) {
if (params.hasOwnProperty(key) && params[key] != undefined && params[key] != null) {
var value = params[key];
if (this.isFileParam(value) || Array.isArray(value)) {
newParams[key] = value;
} else {
newParams[key] = this.paramToString(value);
}
}
}
return newParams;
}
/**
* Builds a string representation of an array-type actual parameter, according to the given collection format.
* @param {Array} param An array parameter.
* @param {module:ApiClient.CollectionFormatEnum} collectionFormat The array element separator strategy.
* @returns {String|Array} A string representation of the supplied collection, using the specified delimiter. Returns
* <code>param</code> as is if <code>collectionFormat</code> is <code>multi</code>.
*/
buildCollectionParam(param, collectionFormat) {
if (param == null) {
return null;
}
switch (collectionFormat) {
case 'csv':
return param.map(this.paramToString, this).join(',');
case 'ssv':
return param.map(this.paramToString, this).join(' ');
case 'tsv':
return param.map(this.paramToString, this).join('\t');
case 'pipes':
return param.map(this.paramToString, this).join('|');
case 'multi':
//return the array directly as SuperAgent will handle it as expected
return param.map(this.paramToString, this);
case 'passthrough':
return param;
default:
throw new Error('Unknown collection format: ' + collectionFormat);
}
}
/**
* Applies authentication headers to the request.
* @param {Object} request The request object created by a <code>superagent()</code> call.
* @param {Array.<String>} authNames An array of authentication method names.
*/
applyAuthToRequest(request, authNames) {
authNames.forEach((authName) => {
var auth = this.authentications[authName];
switch (auth.type) {
case 'basic':
if (auth.username || auth.password) {
request.auth(auth.username || '', auth.password || '');
}
break;
case 'bearer':
if (auth.accessToken) {
var localVarBearerToken = typeof auth.accessToken === 'function'
? auth.accessToken()
: auth.accessToken
request.set({'Authorization': 'Bearer ' + localVarBearerToken});
}
break;
case 'apiKey':
if (auth.apiKey) {
var data = {};
if (auth.apiKeyPrefix) {
data[auth.name] = auth.apiKeyPrefix + ' ' + auth.apiKey;
} else {
data[auth.name] = auth.apiKey;
}
if (auth['in'] === 'header') {
request.set(data);
} else {
request.query(data);
}
}
break;
case 'oauth2':
if (auth.accessToken) {
request.set({'Authorization': 'Bearer ' + auth.accessToken});
}
break;
default:
throw new Error('Unknown authentication type: ' + auth.type);
}
});
}
/**
* Deserializes an HTTP response body into a value of the specified type.
* @param {Object} response A SuperAgent response object.
* @param {(String|Array.<String>|Object.<String, Object>|Function)} returnType The type to return. Pass a string for simple types
* or the constructor function for a complex type. Pass an array containing the type name to return an array of that type. To
* return an object, pass an object with one property whose name is the key type and whose value is the corresponding value type:
* all properties on <code>data<code> will be converted to this type.
* @returns A value of the specified type.
*/
deserialize(response, returnType) {
if (response == null || returnType == null || response.status == 204) {
return null;
}
// Rely on SuperAgent for parsing response body.
// See http://visionmedia.github.io/superagent/#parsing-response-bodies
var data = response.body;
if (data == null || (typeof data === 'object' && typeof data.length === 'undefined' && !Object.keys(data).length)) {
// SuperAgent does not always produce a body; use the unparsed response as a fallback
data = response.text;
}
return ApiClient.convertToType(data, returnType);
}
/**
* Callback function to receive the result of the operation.
* @callback module:ApiClient~callApiCallback
* @param {String} error Error message, if any.
* @param data The data returned by the service call.
* @param {String} response The complete HTTP response.
*/
/**
* Invokes the REST service using the supplied settings and parameters.
* @param {String} path The base URL to invoke.
* @param {String} httpMethod The HTTP method to use.
* @param {Object.<String, String>} pathParams A map of path parameters and their values.
* @param {Object.<String, Object>} queryParams A map of query parameters and their values.
* @param {Object.<String, Object>} headerParams A map of header parameters and their values.
* @param {Object.<String, Object>} formParams A map of form parameters and their values.
* @param {Object} bodyParam The value to pass as the request body.
* @param {Array.<String>} authNames An array of authentication type names.
* @param {Array.<String>} contentTypes An array of request MIME types.
* @param {Array.<String>} accepts An array of acceptable response MIME types.
* @param {(String|Array|ObjectFunction)} returnType The required type to return; can be a string for simple types or the
* constructor for a complex type.
* @param {String} apiBasePath base path defined in the operation/path level to override the default one
* @param {module:ApiClient~callApiCallback} callback The callback function.
* @returns {Object} The SuperAgent request object.
*/
callApi(path, httpMethod, pathParams,
queryParams, headerParams, formParams, bodyParam, authNames, contentTypes, accepts,
returnType, apiBasePath, callback) {
var url = this.buildUrl(path, pathParams, apiBasePath);
var request = superagent(httpMethod, url);
if (this.plugins !== null) {
for (var index in this.plugins) {
if (this.plugins.hasOwnProperty(index)) {
request.use(this.plugins[index])
}
}
}
// apply authentications
this.applyAuthToRequest(request, authNames);
// set query parameters
if (httpMethod.toUpperCase() === 'GET' && this.cache === false) {
queryParams['_'] = new Date().getTime();
}
request.query(this.normalizeParams(queryParams));
// set header parameters
request.set(this.defaultHeaders).set(this.normalizeParams(headerParams));
// set requestAgent if it is set by user
if (this.requestAgent) {
request.agent(this.requestAgent);
}
// set request timeout
request.timeout(this.timeout);
var contentType = this.jsonPreferredMime(contentTypes);
if (contentType) {
// Issue with superagent and multipart/form-data (https://github.com/visionmedia/superagent/issues/746)
if(contentType != 'multipart/form-data') {
request.type(contentType);
}
}
if (contentType === 'application/x-www-form-urlencoded') {
let normalizedParams = this.normalizeParams(formParams)
let urlSearchParams = new URLSearchParams(normalizedParams);
let queryString = urlSearchParams.toString();
request.send(queryString);
} else if (contentType == 'multipart/form-data') {
var _formParams = this.normalizeParams(formParams);
for (var key in _formParams) {
if (_formParams.hasOwnProperty(key)) {
let _formParamsValue = _formParams[key];
if (this.isFileParam(_formParamsValue)) {
// file field
request.attach(key, _formParamsValue);
} else if (Array.isArray(_formParamsValue) && _formParamsValue.length
&& this.isFileParam(_formParamsValue[0])) {
// multiple files
_formParamsValue.forEach(file => request.attach(key, file));
} else {
request.field(key, _formParamsValue);
}
}
}
} else if (bodyParam !== null && bodyParam !== undefined) {
if (!request.header['Content-Type']) {
request.type('application/json');
}
request.send(bodyParam);
}
var accept = this.jsonPreferredMime(accepts);
if (accept) {
request.accept(accept);
}
if (returnType === 'Blob') {
request.responseType('blob');
} else if (returnType === 'String') {
request.responseType('text');
}
// Attach previously saved cookies, if enabled
if (this.enableCookies){
if (typeof window === 'undefined') {
this.agent._attachCookies(request);
}
else {
request.withCredentials();
}
}
request.end((error, response) => {
if (callback) {
var data = null;
if (!error) {
try {
data = this.deserialize(response, returnType);
if (this.enableCookies && typeof window === 'undefined'){
this.agent._saveCookies(response);
}
} catch (err) {
error = err;
}
}
callback(error, data, response);
}
});
return request;
}
/**
* Parses an ISO-8601 string representation or epoch representation of a date value.
* @param {String} str The date value as a string.
* @returns {Date} The parsed date object.
*/
static parseDate(str) {
if (isNaN(str)) {
return new Date(str.replace(/(\d)(T)(\d)/i, '$1 $3'));
}
return new Date(+str);
}
/**
* Converts a value to the specified type.
* @param {(String|Object)} data The data to convert, as a string or object.
* @param {(String|Array.<String>|Object.<String, Object>|Function)} type The type to return. Pass a string for simple types
* or the constructor function for a complex type. Pass an array containing the type name to return an array of that type. To
* return an object, pass an object with one property whose name is the key type and whose value is the corresponding value type:
* all properties on <code>data<code> will be converted to this type.
* @returns An instance of the specified type or null or undefined if data is null or undefined.
*/
static convertToType(data, type) {
if (data === null || data === undefined)
return data
switch (type) {
case 'Boolean':
return Boolean(data);
case 'Integer':
return parseInt(data, 10);
case 'Number':
return parseFloat(data);
case 'String':
return String(data);
case 'Date':
return ApiClient.parseDate(String(data));
case 'Blob':
return data;
default:
if (type === Object) {
// generic object, return directly
return data;
} else if (typeof type.constructFromObject === 'function') {
// for model type like User and enum class
return type.constructFromObject(data);
} else if (Array.isArray(type)) {
// for array type like: ['String']
var itemType = type[0];
return data.map((item) => {
return ApiClient.convertToType(item, itemType);
});
} else if (typeof type === 'object') {
// for plain object type like: {'String': 'Integer'}
var keyType, valueType;
for (var k in type) {
if (type.hasOwnProperty(k)) {
keyType = k;
valueType = type[k];
break;
}
}
var result = {};
for (var k in data) {
if (data.hasOwnProperty(k)) {
var key = ApiClient.convertToType(k, keyType);
var value = ApiClient.convertToType(data[k], valueType);
result[key] = value;
}
}
return result;
} else {
// for unknown type, return the data directly
return data;
}
}
}
/**
* Gets an array of host settings
* @returns An array of host settings
*/
hostSettings() {
return [
{
'url': "http://localhost:3000",
'description': "Development server",
}
];
}
getBasePathFromSettings(index, variables={}) {
var servers = this.hostSettings();
// check array index out of bound
if (index < 0 || index >= servers.length) {
throw new Error("Invalid index " + index + " when selecting the host settings. Must be less than " + servers.length);
}
var server = servers[index];
var url = server['url'];
// go through variable and assign a value
for (var variable_name in server['variables']) {
if (variable_name in variables) {
let variable = server['variables'][variable_name];
if ( !('enum_values' in variable) || variable['enum_values'].includes(variables[variable_name]) ) {
url = url.replace("{" + variable_name + "}", variables[variable_name]);
} else {
throw new Error("The variable `" + variable_name + "` in the host URL has invalid value " + variables[variable_name] + ". Must be " + server['variables'][variable_name]['enum_values'] + ".");
}
} else {
// use default value
url = url.replace("{" + variable_name + "}", server['variables'][variable_name]['default_value'])
}
}
return url;
}
/**
* Constructs a new map or array model from REST data.
* @param data {Object|Array} The REST data.
* @param obj {Object|Array} The target object or array.
*/
static constructFromObject(data, obj, itemType) {
if (Array.isArray(data)) {
for (var i = 0; i < data.length; i++) {
if (data.hasOwnProperty(i))
obj[i] = ApiClient.convertToType(data[i], itemType);
}
} else {
for (var k in data) {
if (data.hasOwnProperty(k))
obj[k] = ApiClient.convertToType(data[k], itemType);
}
}
};
}
/**
* Enumeration of collection format separator strategies.
* @enum {String}
* @readonly
*/
ApiClient.CollectionFormatEnum = {
/**
* Comma-separated values. Value: <code>csv</code>
* @const
*/
CSV: ',',
/**
* Space-separated values. Value: <code>ssv</code>
* @const
*/
SSV: ' ',
/**
* Tab-separated values. Value: <code>tsv</code>
* @const
*/
TSV: '\t',
/**
* Pipe(|)-separated values. Value: <code>pipes</code>
* @const
*/
PIPES: '|',
/**
* Native array. Value: <code>multi</code>
* @const
*/
MULTI: 'multi'
};
/**
* The default API client implementation.
* @type {module:ApiClient}
*/
ApiClient.instance = new ApiClient();
export default ApiClient;

View File

@ -1,123 +0,0 @@
/**
* Low-Code Engine API
* API documentation for the Low-Code Engine platform that provides query execution, database management, and project administration capabilities.
*
* The version of the OpenAPI document: 1.0.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*
*/
import ApiClient from "../ApiClient";
import ApiTokenGeneratePostRequest from '../model/ApiTokenGeneratePostRequest';
import Token from '../model/Token';
/**
* APITokens service.
* @module api/APITokensApi
* @version 1.0.0
*/
export default class APITokensApi {
/**
* Constructs a new APITokensApi.
* @alias module:api/APITokensApi
* @class
* @param {module:ApiClient} [apiClient] Optional API client implementation to use,
* default to {@link module:ApiClient#instance} if unspecified.
*/
constructor(apiClient) {
this.apiClient = apiClient || ApiClient.instance;
}
/**
* Callback function to receive the result of the apiTokenGeneratePost operation.
* @callback module:api/APITokensApi~apiTokenGeneratePostCallback
* @param {String} error Error message, if any.
* @param {module:model/Token} data The data returned by the service call.
* @param {String} response The complete HTTP response.
*/
/**
* Generate API token
* Generate a new API token for a project
* @param {module:model/ApiTokenGeneratePostRequest} apiTokenGeneratePostRequest
* @param {module:api/APITokensApi~apiTokenGeneratePostCallback} callback The callback function, accepting three arguments: error, data, response
* data is of type: {@link module:model/Token}
*/
apiTokenGeneratePost(apiTokenGeneratePostRequest, callback) {
let postBody = apiTokenGeneratePostRequest;
// verify the required parameter 'apiTokenGeneratePostRequest' is set
if (apiTokenGeneratePostRequest === undefined || apiTokenGeneratePostRequest === null) {
throw new Error("Missing the required parameter 'apiTokenGeneratePostRequest' when calling apiTokenGeneratePost");
}
let pathParams = {
};
let queryParams = {
};
let headerParams = {
};
let formParams = {
};
let authNames = ['AdminAuth', 'ApiKeyAuth'];
let contentTypes = ['application/json'];
let accepts = ['application/json'];
let returnType = Token;
return this.apiClient.callApi(
'/api/token/generate', 'POST',
pathParams, queryParams, headerParams, formParams, postBody,
authNames, contentTypes, accepts, returnType, null, callback
);
}
/**
* Callback function to receive the result of the apiTokenRevokeTokenDelete operation.
* @callback module:api/APITokensApi~apiTokenRevokeTokenDeleteCallback
* @param {String} error Error message, if any.
* @param data This operation does not return a value.
* @param {String} response The complete HTTP response.
*/
/**
* Revoke API token
* Revoke an existing API token
* @param {String} token Token to revoke
* @param {module:api/APITokensApi~apiTokenRevokeTokenDeleteCallback} callback The callback function, accepting three arguments: error, data, response
*/
apiTokenRevokeTokenDelete(token, callback) {
let postBody = null;
// verify the required parameter 'token' is set
if (token === undefined || token === null) {
throw new Error("Missing the required parameter 'token' when calling apiTokenRevokeTokenDelete");
}
let pathParams = {
'token': token
};
let queryParams = {
};
let headerParams = {
};
let formParams = {
};
let authNames = ['AdminAuth', 'ApiKeyAuth'];
let contentTypes = [];
let accepts = [];
let returnType = null;
return this.apiClient.callApi(
'/api/token/revoke/{token}', 'DELETE',
pathParams, queryParams, headerParams, formParams, postBody,
authNames, contentTypes, accepts, returnType, null, callback
);
}
}

View File

@ -1,224 +0,0 @@
/**
* Low-Code Engine API
* API documentation for the Low-Code Engine platform that provides query execution, database management, and project administration capabilities.
*
* The version of the OpenAPI document: 1.0.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*
*/
import ApiClient from "../ApiClient";
import CommandCreatePostRequest from '../model/CommandCreatePostRequest';
import CommandUpdateIdPostRequest from '../model/CommandUpdateIdPostRequest';
import Query from '../model/Query';
/**
* Commands service.
* @module api/CommandsApi
* @version 1.0.0
*/
export default class CommandsApi {
/**
* Constructs a new CommandsApi.
* @alias module:api/CommandsApi
* @class
* @param {module:ApiClient} [apiClient] Optional API client implementation to use,
* default to {@link module:ApiClient#instance} if unspecified.
*/
constructor(apiClient) {
this.apiClient = apiClient || ApiClient.instance;
}
/**
* Callback function to receive the result of the commandCreatePost operation.
* @callback module:api/CommandsApi~commandCreatePostCallback
* @param {String} error Error message, if any.
* @param {module:model/Query} data The data returned by the service call.
* @param {String} response The complete HTTP response.
*/
/**
* Create command
* Create a new command in the project
* @param {module:model/CommandCreatePostRequest} commandCreatePostRequest
* @param {module:api/CommandsApi~commandCreatePostCallback} callback The callback function, accepting three arguments: error, data, response
* data is of type: {@link module:model/Query}
*/
commandCreatePost(commandCreatePostRequest, callback) {
let postBody = commandCreatePostRequest;
// verify the required parameter 'commandCreatePostRequest' is set
if (commandCreatePostRequest === undefined || commandCreatePostRequest === null) {
throw new Error("Missing the required parameter 'commandCreatePostRequest' when calling commandCreatePost");
}
let pathParams = {
};
let queryParams = {
};
let headerParams = {
};
let formParams = {
};
let authNames = ['ApiKeyAuth'];
let contentTypes = ['application/json'];
let accepts = ['application/json'];
let returnType = Query;
return this.apiClient.callApi(
'/command/create', 'POST',
pathParams, queryParams, headerParams, formParams, postBody,
authNames, contentTypes, accepts, returnType, null, callback
);
}
/**
* Callback function to receive the result of the commandDeleteIdDelete operation.
* @callback module:api/CommandsApi~commandDeleteIdDeleteCallback
* @param {String} error Error message, if any.
* @param data This operation does not return a value.
* @param {String} response The complete HTTP response.
*/
/**
* Delete command
* Delete an existing command
* @param {String} id Command ID
* @param {module:api/CommandsApi~commandDeleteIdDeleteCallback} callback The callback function, accepting three arguments: error, data, response
*/
commandDeleteIdDelete(id, callback) {
let postBody = null;
// verify the required parameter 'id' is set
if (id === undefined || id === null) {
throw new Error("Missing the required parameter 'id' when calling commandDeleteIdDelete");
}
let pathParams = {
'id': id
};
let queryParams = {
};
let headerParams = {
};
let formParams = {
};
let authNames = ['QueryGuard', 'ApiKeyAuth'];
let contentTypes = [];
let accepts = [];
let returnType = null;
return this.apiClient.callApi(
'/command/delete/{id}', 'DELETE',
pathParams, queryParams, headerParams, formParams, postBody,
authNames, contentTypes, accepts, returnType, null, callback
);
}
/**
* Callback function to receive the result of the commandRunIdPost operation.
* @callback module:api/CommandsApi~commandRunIdPostCallback
* @param {String} error Error message, if any.
* @param {Object} data The data returned by the service call.
* @param {String} response The complete HTTP response.
*/
/**
* Run command
* Execute a command with provided data
* @param {String} id Command ID
* @param {Object.<String, Object>} body
* @param {Object} opts Optional parameters
* @param {String} [xTraceId] Trace ID for logging
* @param {module:api/CommandsApi~commandRunIdPostCallback} callback The callback function, accepting three arguments: error, data, response
* data is of type: {@link Object}
*/
commandRunIdPost(id, body, opts, callback) {
opts = opts || {};
let postBody = body;
// verify the required parameter 'id' is set
if (id === undefined || id === null) {
throw new Error("Missing the required parameter 'id' when calling commandRunIdPost");
}
// verify the required parameter 'body' is set
if (body === undefined || body === null) {
throw new Error("Missing the required parameter 'body' when calling commandRunIdPost");
}
let pathParams = {
'id': id
};
let queryParams = {
};
let headerParams = {
'x-trace-id': opts['xTraceId']
};
let formParams = {
};
let authNames = ['QueryGuard', 'ApiKeyAuth'];
let contentTypes = ['application/json'];
let accepts = ['application/json'];
let returnType = Object;
return this.apiClient.callApi(
'/command/run/{id}', 'POST',
pathParams, queryParams, headerParams, formParams, postBody,
authNames, contentTypes, accepts, returnType, null, callback
);
}
/**
* Callback function to receive the result of the commandUpdateIdPost operation.
* @callback module:api/CommandsApi~commandUpdateIdPostCallback
* @param {String} error Error message, if any.
* @param {module:model/Query} data The data returned by the service call.
* @param {String} response The complete HTTP response.
*/
/**
* Update command
* Update an existing command
* @param {String} id Command ID
* @param {module:model/CommandUpdateIdPostRequest} commandUpdateIdPostRequest
* @param {module:api/CommandsApi~commandUpdateIdPostCallback} callback The callback function, accepting three arguments: error, data, response
* data is of type: {@link module:model/Query}
*/
commandUpdateIdPost(id, commandUpdateIdPostRequest, callback) {
let postBody = commandUpdateIdPostRequest;
// verify the required parameter 'id' is set
if (id === undefined || id === null) {
throw new Error("Missing the required parameter 'id' when calling commandUpdateIdPost");
}
// verify the required parameter 'commandUpdateIdPostRequest' is set
if (commandUpdateIdPostRequest === undefined || commandUpdateIdPostRequest === null) {
throw new Error("Missing the required parameter 'commandUpdateIdPostRequest' when calling commandUpdateIdPost");
}
let pathParams = {
'id': id
};
let queryParams = {
};
let headerParams = {
};
let formParams = {
};
let authNames = ['QueryGuard', 'ApiKeyAuth'];
let contentTypes = ['application/json'];
let accepts = ['application/json'];
let returnType = Query;
return this.apiClient.callApi(
'/command/update/{id}', 'POST',
pathParams, queryParams, headerParams, formParams, postBody,
authNames, contentTypes, accepts, returnType, null, callback
);
}
}

View File

@ -1,394 +0,0 @@
/**
* Low-Code Engine API
* API documentation for the Low-Code Engine platform that provides query execution, database management, and project administration capabilities.
*
* The version of the OpenAPI document: 1.0.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*
*/
import ApiClient from "../ApiClient";
import Database from '../model/Database';
import DatabaseCreatePostRequest from '../model/DatabaseCreatePostRequest';
import DatabaseMigrationCreatePostRequest from '../model/DatabaseMigrationCreatePostRequest';
import DatabaseNode from '../model/DatabaseNode';
import DatabaseNodeCreatePostRequest from '../model/DatabaseNodeCreatePostRequest';
import DatabaseQueryDatabaseIdPostRequest from '../model/DatabaseQueryDatabaseIdPostRequest';
import Migration from '../model/Migration';
/**
* DatabaseManagement service.
* @module api/DatabaseManagementApi
* @version 1.0.0
*/
export default class DatabaseManagementApi {
/**
* Constructs a new DatabaseManagementApi.
* @alias module:api/DatabaseManagementApi
* @class
* @param {module:ApiClient} [apiClient] Optional API client implementation to use,
* default to {@link module:ApiClient#instance} if unspecified.
*/
constructor(apiClient) {
this.apiClient = apiClient || ApiClient.instance;
}
/**
* Callback function to receive the result of the databaseColumnsDatabaseIdTableNameGet operation.
* @callback module:api/DatabaseManagementApi~databaseColumnsDatabaseIdTableNameGetCallback
* @param {String} error Error message, if any.
* @param {Array.<Object>} data The data returned by the service call.
* @param {String} response The complete HTTP response.
*/
/**
* Get table columns
* Retrieve columns information for a specific table
* @param {String} databaseId Database ID
* @param {String} tableName Table name
* @param {module:api/DatabaseManagementApi~databaseColumnsDatabaseIdTableNameGetCallback} callback The callback function, accepting three arguments: error, data, response
* data is of type: {@link Array.<Object>}
*/
databaseColumnsDatabaseIdTableNameGet(databaseId, tableName, callback) {
let postBody = null;
// verify the required parameter 'databaseId' is set
if (databaseId === undefined || databaseId === null) {
throw new Error("Missing the required parameter 'databaseId' when calling databaseColumnsDatabaseIdTableNameGet");
}
// verify the required parameter 'tableName' is set
if (tableName === undefined || tableName === null) {
throw new Error("Missing the required parameter 'tableName' when calling databaseColumnsDatabaseIdTableNameGet");
}
let pathParams = {
'databaseId': databaseId,
'tableName': tableName
};
let queryParams = {
};
let headerParams = {
};
let formParams = {
};
let authNames = ['ApiKeyAuth'];
let contentTypes = [];
let accepts = ['application/json'];
let returnType = [Object];
return this.apiClient.callApi(
'/database/columns/{databaseId}/{tableName}', 'GET',
pathParams, queryParams, headerParams, formParams, postBody,
authNames, contentTypes, accepts, returnType, null, callback
);
}
/**
* Callback function to receive the result of the databaseCreatePost operation.
* @callback module:api/DatabaseManagementApi~databaseCreatePostCallback
* @param {String} error Error message, if any.
* @param {module:model/Database} data The data returned by the service call.
* @param {String} response The complete HTTP response.
*/
/**
* Create database
* Create a new database for a project
* @param {module:model/DatabaseCreatePostRequest} databaseCreatePostRequest
* @param {module:api/DatabaseManagementApi~databaseCreatePostCallback} callback The callback function, accepting three arguments: error, data, response
* data is of type: {@link module:model/Database}
*/
databaseCreatePost(databaseCreatePostRequest, callback) {
let postBody = databaseCreatePostRequest;
// verify the required parameter 'databaseCreatePostRequest' is set
if (databaseCreatePostRequest === undefined || databaseCreatePostRequest === null) {
throw new Error("Missing the required parameter 'databaseCreatePostRequest' when calling databaseCreatePost");
}
let pathParams = {
};
let queryParams = {
};
let headerParams = {
};
let formParams = {
};
let authNames = ['AdminAuth', 'ApiKeyAuth'];
let contentTypes = ['application/json'];
let accepts = ['application/json'];
let returnType = Database;
return this.apiClient.callApi(
'/database/create', 'POST',
pathParams, queryParams, headerParams, formParams, postBody,
authNames, contentTypes, accepts, returnType, null, callback
);
}
/**
* Callback function to receive the result of the databaseMigrationCreatePost operation.
* @callback module:api/DatabaseManagementApi~databaseMigrationCreatePostCallback
* @param {String} error Error message, if any.
* @param {module:model/Migration} data The data returned by the service call.
* @param {String} response The complete HTTP response.
*/
/**
* Create migration
* Create a new database migration
* @param {module:model/DatabaseMigrationCreatePostRequest} databaseMigrationCreatePostRequest
* @param {module:api/DatabaseManagementApi~databaseMigrationCreatePostCallback} callback The callback function, accepting three arguments: error, data, response
* data is of type: {@link module:model/Migration}
*/
databaseMigrationCreatePost(databaseMigrationCreatePostRequest, callback) {
let postBody = databaseMigrationCreatePostRequest;
// verify the required parameter 'databaseMigrationCreatePostRequest' is set
if (databaseMigrationCreatePostRequest === undefined || databaseMigrationCreatePostRequest === null) {
throw new Error("Missing the required parameter 'databaseMigrationCreatePostRequest' when calling databaseMigrationCreatePost");
}
let pathParams = {
};
let queryParams = {
};
let headerParams = {
};
let formParams = {
};
let authNames = ['ApiKeyAuth'];
let contentTypes = ['application/json'];
let accepts = ['application/json'];
let returnType = Migration;
return this.apiClient.callApi(
'/database/migration/create', 'POST',
pathParams, queryParams, headerParams, formParams, postBody,
authNames, contentTypes, accepts, returnType, null, callback
);
}
/**
* Callback function to receive the result of the databaseMigrationDownDatabaseIdGet operation.
* @callback module:api/DatabaseManagementApi~databaseMigrationDownDatabaseIdGetCallback
* @param {String} error Error message, if any.
* @param data This operation does not return a value.
* @param {String} response The complete HTTP response.
*/
/**
* Run migrations down
* Rollback database migrations
* @param {String} databaseId Database ID
* @param {module:api/DatabaseManagementApi~databaseMigrationDownDatabaseIdGetCallback} callback The callback function, accepting three arguments: error, data, response
*/
databaseMigrationDownDatabaseIdGet(databaseId, callback) {
let postBody = null;
// verify the required parameter 'databaseId' is set
if (databaseId === undefined || databaseId === null) {
throw new Error("Missing the required parameter 'databaseId' when calling databaseMigrationDownDatabaseIdGet");
}
let pathParams = {
'databaseId': databaseId
};
let queryParams = {
};
let headerParams = {
};
let formParams = {
};
let authNames = ['ApiKeyAuth'];
let contentTypes = [];
let accepts = [];
let returnType = null;
return this.apiClient.callApi(
'/database/migration/down/{databaseId}', 'GET',
pathParams, queryParams, headerParams, formParams, postBody,
authNames, contentTypes, accepts, returnType, null, callback
);
}
/**
* Callback function to receive the result of the databaseMigrationUpDatabaseIdGet operation.
* @callback module:api/DatabaseManagementApi~databaseMigrationUpDatabaseIdGetCallback
* @param {String} error Error message, if any.
* @param data This operation does not return a value.
* @param {String} response The complete HTTP response.
*/
/**
* Run migrations up
* Execute pending database migrations
* @param {String} databaseId Database ID
* @param {module:api/DatabaseManagementApi~databaseMigrationUpDatabaseIdGetCallback} callback The callback function, accepting three arguments: error, data, response
*/
databaseMigrationUpDatabaseIdGet(databaseId, callback) {
let postBody = null;
// verify the required parameter 'databaseId' is set
if (databaseId === undefined || databaseId === null) {
throw new Error("Missing the required parameter 'databaseId' when calling databaseMigrationUpDatabaseIdGet");
}
let pathParams = {
'databaseId': databaseId
};
let queryParams = {
};
let headerParams = {
};
let formParams = {
};
let authNames = ['ApiKeyAuth'];
let contentTypes = [];
let accepts = [];
let returnType = null;
return this.apiClient.callApi(
'/database/migration/up/{databaseId}', 'GET',
pathParams, queryParams, headerParams, formParams, postBody,
authNames, contentTypes, accepts, returnType, null, callback
);
}
/**
* Callback function to receive the result of the databaseNodeCreatePost operation.
* @callback module:api/DatabaseManagementApi~databaseNodeCreatePostCallback
* @param {String} error Error message, if any.
* @param {module:model/DatabaseNode} data The data returned by the service call.
* @param {String} response The complete HTTP response.
*/
/**
* Add database node
* Add a new database node to the system
* @param {module:model/DatabaseNodeCreatePostRequest} databaseNodeCreatePostRequest
* @param {module:api/DatabaseManagementApi~databaseNodeCreatePostCallback} callback The callback function, accepting three arguments: error, data, response
* data is of type: {@link module:model/DatabaseNode}
*/
databaseNodeCreatePost(databaseNodeCreatePostRequest, callback) {
let postBody = databaseNodeCreatePostRequest;
// verify the required parameter 'databaseNodeCreatePostRequest' is set
if (databaseNodeCreatePostRequest === undefined || databaseNodeCreatePostRequest === null) {
throw new Error("Missing the required parameter 'databaseNodeCreatePostRequest' when calling databaseNodeCreatePost");
}
let pathParams = {
};
let queryParams = {
};
let headerParams = {
};
let formParams = {
};
let authNames = ['AdminAuth', 'ApiKeyAuth'];
let contentTypes = ['application/json'];
let accepts = ['application/json'];
let returnType = DatabaseNode;
return this.apiClient.callApi(
'/database/node/create', 'POST',
pathParams, queryParams, headerParams, formParams, postBody,
authNames, contentTypes, accepts, returnType, null, callback
);
}
/**
* Callback function to receive the result of the databaseQueryDatabaseIdPost operation.
* @callback module:api/DatabaseManagementApi~databaseQueryDatabaseIdPostCallback
* @param {String} error Error message, if any.
* @param {Object} data The data returned by the service call.
* @param {String} response The complete HTTP response.
*/
/**
* Run database query
* Execute a SQL query on the database
* @param {String} databaseId Database ID
* @param {module:model/DatabaseQueryDatabaseIdPostRequest} databaseQueryDatabaseIdPostRequest
* @param {module:api/DatabaseManagementApi~databaseQueryDatabaseIdPostCallback} callback The callback function, accepting three arguments: error, data, response
* data is of type: {@link Object}
*/
databaseQueryDatabaseIdPost(databaseId, databaseQueryDatabaseIdPostRequest, callback) {
let postBody = databaseQueryDatabaseIdPostRequest;
// verify the required parameter 'databaseId' is set
if (databaseId === undefined || databaseId === null) {
throw new Error("Missing the required parameter 'databaseId' when calling databaseQueryDatabaseIdPost");
}
// verify the required parameter 'databaseQueryDatabaseIdPostRequest' is set
if (databaseQueryDatabaseIdPostRequest === undefined || databaseQueryDatabaseIdPostRequest === null) {
throw new Error("Missing the required parameter 'databaseQueryDatabaseIdPostRequest' when calling databaseQueryDatabaseIdPost");
}
let pathParams = {
'databaseId': databaseId
};
let queryParams = {
};
let headerParams = {
};
let formParams = {
};
let authNames = ['ApiKeyAuth'];
let contentTypes = ['application/json'];
let accepts = ['application/json'];
let returnType = Object;
return this.apiClient.callApi(
'/database/query/{databaseId}', 'POST',
pathParams, queryParams, headerParams, formParams, postBody,
authNames, contentTypes, accepts, returnType, null, callback
);
}
/**
* Callback function to receive the result of the databaseTablesDatabaseIdGet operation.
* @callback module:api/DatabaseManagementApi~databaseTablesDatabaseIdGetCallback
* @param {String} error Error message, if any.
* @param {Array.<String>} data The data returned by the service call.
* @param {String} response The complete HTTP response.
*/
/**
* Get database tables
* Retrieve list of tables in a database
* @param {String} databaseId Database ID
* @param {module:api/DatabaseManagementApi~databaseTablesDatabaseIdGetCallback} callback The callback function, accepting three arguments: error, data, response
* data is of type: {@link Array.<String>}
*/
databaseTablesDatabaseIdGet(databaseId, callback) {
let postBody = null;
// verify the required parameter 'databaseId' is set
if (databaseId === undefined || databaseId === null) {
throw new Error("Missing the required parameter 'databaseId' when calling databaseTablesDatabaseIdGet");
}
let pathParams = {
'databaseId': databaseId
};
let queryParams = {
};
let headerParams = {
};
let formParams = {
};
let authNames = ['ApiKeyAuth'];
let contentTypes = [];
let accepts = ['application/json'];
let returnType = ['String'];
return this.apiClient.callApi(
'/database/tables/{databaseId}', 'GET',
pathParams, queryParams, headerParams, formParams, postBody,
authNames, contentTypes, accepts, returnType, null, callback
);
}
}

View File

@ -1,123 +0,0 @@
/**
* Low-Code Engine API
* API documentation for the Low-Code Engine platform that provides query execution, database management, and project administration capabilities.
*
* The version of the OpenAPI document: 1.0.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*
*/
import ApiClient from "../ApiClient";
import Function from '../model/Function';
import FunctionsCreatePostRequest from '../model/FunctionsCreatePostRequest';
import FunctionsDeletePostRequest from '../model/FunctionsDeletePostRequest';
/**
* Functions service.
* @module api/FunctionsApi
* @version 1.0.0
*/
export default class FunctionsApi {
/**
* Constructs a new FunctionsApi.
* @alias module:api/FunctionsApi
* @class
* @param {module:ApiClient} [apiClient] Optional API client implementation to use,
* default to {@link module:ApiClient#instance} if unspecified.
*/
constructor(apiClient) {
this.apiClient = apiClient || ApiClient.instance;
}
/**
* Callback function to receive the result of the functionsCreatePost operation.
* @callback module:api/FunctionsApi~functionsCreatePostCallback
* @param {String} error Error message, if any.
* @param {module:model/Function} data The data returned by the service call.
* @param {String} response The complete HTTP response.
*/
/**
* Create function
* Create a new function in the project
* @param {module:model/FunctionsCreatePostRequest} functionsCreatePostRequest
* @param {module:api/FunctionsApi~functionsCreatePostCallback} callback The callback function, accepting three arguments: error, data, response
* data is of type: {@link module:model/Function}
*/
functionsCreatePost(functionsCreatePostRequest, callback) {
let postBody = functionsCreatePostRequest;
// verify the required parameter 'functionsCreatePostRequest' is set
if (functionsCreatePostRequest === undefined || functionsCreatePostRequest === null) {
throw new Error("Missing the required parameter 'functionsCreatePostRequest' when calling functionsCreatePost");
}
let pathParams = {
};
let queryParams = {
};
let headerParams = {
};
let formParams = {
};
let authNames = ['ApiKeyAuth'];
let contentTypes = ['application/json'];
let accepts = ['application/json'];
let returnType = Function;
return this.apiClient.callApi(
'/functions/create', 'POST',
pathParams, queryParams, headerParams, formParams, postBody,
authNames, contentTypes, accepts, returnType, null, callback
);
}
/**
* Callback function to receive the result of the functionsDeletePost operation.
* @callback module:api/FunctionsApi~functionsDeletePostCallback
* @param {String} error Error message, if any.
* @param data This operation does not return a value.
* @param {String} response The complete HTTP response.
*/
/**
* Delete function
* Delete a function from the project
* @param {module:model/FunctionsDeletePostRequest} functionsDeletePostRequest
* @param {module:api/FunctionsApi~functionsDeletePostCallback} callback The callback function, accepting three arguments: error, data, response
*/
functionsDeletePost(functionsDeletePostRequest, callback) {
let postBody = functionsDeletePostRequest;
// verify the required parameter 'functionsDeletePostRequest' is set
if (functionsDeletePostRequest === undefined || functionsDeletePostRequest === null) {
throw new Error("Missing the required parameter 'functionsDeletePostRequest' when calling functionsDeletePost");
}
let pathParams = {
};
let queryParams = {
};
let headerParams = {
};
let formParams = {
};
let authNames = ['ApiKeyAuth'];
let contentTypes = ['application/json'];
let accepts = [];
let returnType = null;
return this.apiClient.callApi(
'/functions/delete', 'POST',
pathParams, queryParams, headerParams, formParams, postBody,
authNames, contentTypes, accepts, returnType, null, callback
);
}
}

View File

@ -1,184 +0,0 @@
/**
* Low-Code Engine API
* API documentation for the Low-Code Engine platform that provides query execution, database management, and project administration capabilities.
*
* The version of the OpenAPI document: 1.0.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*
*/
import ApiClient from "../ApiClient";
import Log from '../model/Log';
import LoggerIdFindAllPostRequest from '../model/LoggerIdFindAllPostRequest';
/**
* Logging service.
* @module api/LoggingApi
* @version 1.0.0
*/
export default class LoggingApi {
/**
* Constructs a new LoggingApi.
* @alias module:api/LoggingApi
* @class
* @param {module:ApiClient} [apiClient] Optional API client implementation to use,
* default to {@link module:ApiClient#instance} if unspecified.
*/
constructor(apiClient) {
this.apiClient = apiClient || ApiClient.instance;
}
/**
* Callback function to receive the result of the loggerIdFindAllPost operation.
* @callback module:api/LoggingApi~loggerIdFindAllPostCallback
* @param {String} error Error message, if any.
* @param {Array.<module:model/Log>} data The data returned by the service call.
* @param {String} response The complete HTTP response.
*/
/**
* Find all logs
* Find all logs for a project with filtering
* @param {String} id Project ID
* @param {module:model/LoggerIdFindAllPostRequest} loggerIdFindAllPostRequest
* @param {module:api/LoggingApi~loggerIdFindAllPostCallback} callback The callback function, accepting three arguments: error, data, response
* data is of type: {@link Array.<module:model/Log>}
*/
loggerIdFindAllPost(id, loggerIdFindAllPostRequest, callback) {
let postBody = loggerIdFindAllPostRequest;
// verify the required parameter 'id' is set
if (id === undefined || id === null) {
throw new Error("Missing the required parameter 'id' when calling loggerIdFindAllPost");
}
// verify the required parameter 'loggerIdFindAllPostRequest' is set
if (loggerIdFindAllPostRequest === undefined || loggerIdFindAllPostRequest === null) {
throw new Error("Missing the required parameter 'loggerIdFindAllPostRequest' when calling loggerIdFindAllPost");
}
let pathParams = {
'id': id
};
let queryParams = {
};
let headerParams = {
};
let formParams = {
};
let authNames = ['ApiKeyAuth'];
let contentTypes = ['application/json'];
let accepts = ['application/json'];
let returnType = [Log];
return this.apiClient.callApi(
'/logger/{id}/findAll', 'POST',
pathParams, queryParams, headerParams, formParams, postBody,
authNames, contentTypes, accepts, returnType, null, callback
);
}
/**
* Callback function to receive the result of the loggerIdFindPost operation.
* @callback module:api/LoggingApi~loggerIdFindPostCallback
* @param {String} error Error message, if any.
* @param {Array.<module:model/Log>} data The data returned by the service call.
* @param {String} response The complete HTTP response.
*/
/**
* Find logs for query
* Find logs for a specific query with filtering
* @param {String} id Query ID
* @param {module:model/LoggerIdFindAllPostRequest} loggerIdFindAllPostRequest
* @param {module:api/LoggingApi~loggerIdFindPostCallback} callback The callback function, accepting three arguments: error, data, response
* data is of type: {@link Array.<module:model/Log>}
*/
loggerIdFindPost(id, loggerIdFindAllPostRequest, callback) {
let postBody = loggerIdFindAllPostRequest;
// verify the required parameter 'id' is set
if (id === undefined || id === null) {
throw new Error("Missing the required parameter 'id' when calling loggerIdFindPost");
}
// verify the required parameter 'loggerIdFindAllPostRequest' is set
if (loggerIdFindAllPostRequest === undefined || loggerIdFindAllPostRequest === null) {
throw new Error("Missing the required parameter 'loggerIdFindAllPostRequest' when calling loggerIdFindPost");
}
let pathParams = {
'id': id
};
let queryParams = {
};
let headerParams = {
};
let formParams = {
};
let authNames = ['QueryGuard', 'ApiKeyAuth'];
let contentTypes = ['application/json'];
let accepts = ['application/json'];
let returnType = [Log];
return this.apiClient.callApi(
'/logger/{id}/find', 'POST',
pathParams, queryParams, headerParams, formParams, postBody,
authNames, contentTypes, accepts, returnType, null, callback
);
}
/**
* Callback function to receive the result of the loggerIdTraceIdGet operation.
* @callback module:api/LoggingApi~loggerIdTraceIdGetCallback
* @param {String} error Error message, if any.
* @param {module:model/Log} data The data returned by the service call.
* @param {String} response The complete HTTP response.
*/
/**
* Get log by trace ID
* Retrieve log entries by trace ID
* @param {String} id Log ID
* @param {String} traceId Trace ID
* @param {module:api/LoggingApi~loggerIdTraceIdGetCallback} callback The callback function, accepting three arguments: error, data, response
* data is of type: {@link module:model/Log}
*/
loggerIdTraceIdGet(id, traceId, callback) {
let postBody = null;
// verify the required parameter 'id' is set
if (id === undefined || id === null) {
throw new Error("Missing the required parameter 'id' when calling loggerIdTraceIdGet");
}
// verify the required parameter 'traceId' is set
if (traceId === undefined || traceId === null) {
throw new Error("Missing the required parameter 'traceId' when calling loggerIdTraceIdGet");
}
let pathParams = {
'id': id,
'traceId': traceId
};
let queryParams = {
};
let headerParams = {
};
let formParams = {
};
let authNames = ['ApiKeyAuth'];
let contentTypes = [];
let accepts = ['application/json'];
let returnType = Log;
return this.apiClient.callApi(
'/logger/{id}/{traceId}', 'GET',
pathParams, queryParams, headerParams, formParams, postBody,
authNames, contentTypes, accepts, returnType, null, callback
);
}
}

View File

@ -1,284 +0,0 @@
/**
* Low-Code Engine API
* API documentation for the Low-Code Engine platform that provides query execution, database management, and project administration capabilities.
*
* The version of the OpenAPI document: 1.0.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*
*/
import ApiClient from "../ApiClient";
import Project from '../model/Project';
import ProjectCreatePutRequest from '../model/ProjectCreatePutRequest';
import ProjectSetting from '../model/ProjectSetting';
import ProjectSettingsCreatePutRequest from '../model/ProjectSettingsCreatePutRequest';
import Token from '../model/Token';
/**
* ProjectManagement service.
* @module api/ProjectManagementApi
* @version 1.0.0
*/
export default class ProjectManagementApi {
/**
* Constructs a new ProjectManagementApi.
* @alias module:api/ProjectManagementApi
* @class
* @param {module:ApiClient} [apiClient] Optional API client implementation to use,
* default to {@link module:ApiClient#instance} if unspecified.
*/
constructor(apiClient) {
this.apiClient = apiClient || ApiClient.instance;
}
/**
* Callback function to receive the result of the projectApiTokensGet operation.
* @callback module:api/ProjectManagementApi~projectApiTokensGetCallback
* @param {String} error Error message, if any.
* @param {Array.<module:model/Token>} data The data returned by the service call.
* @param {String} response The complete HTTP response.
*/
/**
* Get all API tokens
* Retrieve all API tokens for the current project
* @param {module:api/ProjectManagementApi~projectApiTokensGetCallback} callback The callback function, accepting three arguments: error, data, response
* data is of type: {@link Array.<module:model/Token>}
*/
projectApiTokensGet(callback) {
let postBody = null;
let pathParams = {
};
let queryParams = {
};
let headerParams = {
};
let formParams = {
};
let authNames = ['AdminAuth', 'ApiKeyAuth'];
let contentTypes = [];
let accepts = ['application/json'];
let returnType = [Token];
return this.apiClient.callApi(
'/project/api-tokens', 'GET',
pathParams, queryParams, headerParams, formParams, postBody,
authNames, contentTypes, accepts, returnType, null, callback
);
}
/**
* Callback function to receive the result of the projectCreatePut operation.
* @callback module:api/ProjectManagementApi~projectCreatePutCallback
* @param {String} error Error message, if any.
* @param {module:model/Project} data The data returned by the service call.
* @param {String} response The complete HTTP response.
*/
/**
* Create project
* Create a new project with database
* @param {module:model/ProjectCreatePutRequest} projectCreatePutRequest
* @param {module:api/ProjectManagementApi~projectCreatePutCallback} callback The callback function, accepting three arguments: error, data, response
* data is of type: {@link module:model/Project}
*/
projectCreatePut(projectCreatePutRequest, callback) {
let postBody = projectCreatePutRequest;
// verify the required parameter 'projectCreatePutRequest' is set
if (projectCreatePutRequest === undefined || projectCreatePutRequest === null) {
throw new Error("Missing the required parameter 'projectCreatePutRequest' when calling projectCreatePut");
}
let pathParams = {
};
let queryParams = {
};
let headerParams = {
};
let formParams = {
};
let authNames = ['ApiKeyAuth'];
let contentTypes = ['application/json'];
let accepts = ['application/json'];
let returnType = Project;
return this.apiClient.callApi(
'/project/create', 'PUT',
pathParams, queryParams, headerParams, formParams, postBody,
authNames, contentTypes, accepts, returnType, null, callback
);
}
/**
* Callback function to receive the result of the projectCreateWithoutDbPut operation.
* @callback module:api/ProjectManagementApi~projectCreateWithoutDbPutCallback
* @param {String} error Error message, if any.
* @param {module:model/Project} data The data returned by the service call.
* @param {String} response The complete HTTP response.
*/
/**
* Create project without database
* Create a new project without creating a database
* @param {module:model/ProjectCreatePutRequest} projectCreatePutRequest
* @param {module:api/ProjectManagementApi~projectCreateWithoutDbPutCallback} callback The callback function, accepting three arguments: error, data, response
* data is of type: {@link module:model/Project}
*/
projectCreateWithoutDbPut(projectCreatePutRequest, callback) {
let postBody = projectCreatePutRequest;
// verify the required parameter 'projectCreatePutRequest' is set
if (projectCreatePutRequest === undefined || projectCreatePutRequest === null) {
throw new Error("Missing the required parameter 'projectCreatePutRequest' when calling projectCreateWithoutDbPut");
}
let pathParams = {
};
let queryParams = {
};
let headerParams = {
};
let formParams = {
};
let authNames = ['AdminAuth', 'ApiKeyAuth'];
let contentTypes = ['application/json'];
let accepts = ['application/json'];
let returnType = Project;
return this.apiClient.callApi(
'/project/create-without-db', 'PUT',
pathParams, queryParams, headerParams, formParams, postBody,
authNames, contentTypes, accepts, returnType, null, callback
);
}
/**
* Callback function to receive the result of the projectSettingsCreatePut operation.
* @callback module:api/ProjectManagementApi~projectSettingsCreatePutCallback
* @param {String} error Error message, if any.
* @param {module:model/ProjectSetting} data The data returned by the service call.
* @param {String} response The complete HTTP response.
*/
/**
* Create project setting
* Create a new project setting
* @param {module:model/ProjectSettingsCreatePutRequest} projectSettingsCreatePutRequest
* @param {module:api/ProjectManagementApi~projectSettingsCreatePutCallback} callback The callback function, accepting three arguments: error, data, response
* data is of type: {@link module:model/ProjectSetting}
*/
projectSettingsCreatePut(projectSettingsCreatePutRequest, callback) {
let postBody = projectSettingsCreatePutRequest;
// verify the required parameter 'projectSettingsCreatePutRequest' is set
if (projectSettingsCreatePutRequest === undefined || projectSettingsCreatePutRequest === null) {
throw new Error("Missing the required parameter 'projectSettingsCreatePutRequest' when calling projectSettingsCreatePut");
}
let pathParams = {
};
let queryParams = {
};
let headerParams = {
};
let formParams = {
};
let authNames = ['ApiKeyAuth'];
let contentTypes = ['application/json'];
let accepts = ['application/json'];
let returnType = ProjectSetting;
return this.apiClient.callApi(
'/project/settings/create', 'PUT',
pathParams, queryParams, headerParams, formParams, postBody,
authNames, contentTypes, accepts, returnType, null, callback
);
}
/**
* Callback function to receive the result of the projectSettingsDeleteKeyDelete operation.
* @callback module:api/ProjectManagementApi~projectSettingsDeleteKeyDeleteCallback
* @param {String} error Error message, if any.
* @param data This operation does not return a value.
* @param {String} response The complete HTTP response.
*/
/**
* Delete project setting
* Delete a project setting by key
* @param {String} key Setting key to delete
* @param {module:api/ProjectManagementApi~projectSettingsDeleteKeyDeleteCallback} callback The callback function, accepting three arguments: error, data, response
*/
projectSettingsDeleteKeyDelete(key, callback) {
let postBody = null;
// verify the required parameter 'key' is set
if (key === undefined || key === null) {
throw new Error("Missing the required parameter 'key' when calling projectSettingsDeleteKeyDelete");
}
let pathParams = {
'key': key
};
let queryParams = {
};
let headerParams = {
};
let formParams = {
};
let authNames = ['ApiKeyAuth'];
let contentTypes = [];
let accepts = [];
let returnType = null;
return this.apiClient.callApi(
'/project/settings/delete/{key}', 'DELETE',
pathParams, queryParams, headerParams, formParams, postBody,
authNames, contentTypes, accepts, returnType, null, callback
);
}
/**
* Callback function to receive the result of the projectSettingsGet operation.
* @callback module:api/ProjectManagementApi~projectSettingsGetCallback
* @param {String} error Error message, if any.
* @param {Array.<module:model/ProjectSetting>} data The data returned by the service call.
* @param {String} response The complete HTTP response.
*/
/**
* Get all project settings
* Retrieve all settings for the current project
* @param {module:api/ProjectManagementApi~projectSettingsGetCallback} callback The callback function, accepting three arguments: error, data, response
* data is of type: {@link Array.<module:model/ProjectSetting>}
*/
projectSettingsGet(callback) {
let postBody = null;
let pathParams = {
};
let queryParams = {
};
let headerParams = {
};
let formParams = {
};
let authNames = ['ApiKeyAuth'];
let contentTypes = [];
let accepts = ['application/json'];
let returnType = [ProjectSetting];
return this.apiClient.callApi(
'/project/settings', 'GET',
pathParams, queryParams, headerParams, formParams, postBody,
authNames, contentTypes, accepts, returnType, null, callback
);
}
}

View File

@ -1,224 +0,0 @@
/**
* Low-Code Engine API
* API documentation for the Low-Code Engine platform that provides query execution, database management, and project administration capabilities.
*
* The version of the OpenAPI document: 1.0.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*
*/
import ApiClient from "../ApiClient";
import Query from '../model/Query';
import QueryCreatePostRequest from '../model/QueryCreatePostRequest';
import QueryUpdateIdPostRequest from '../model/QueryUpdateIdPostRequest';
/**
* Queries service.
* @module api/QueriesApi
* @version 1.0.0
*/
export default class QueriesApi {
/**
* Constructs a new QueriesApi.
* @alias module:api/QueriesApi
* @class
* @param {module:ApiClient} [apiClient] Optional API client implementation to use,
* default to {@link module:ApiClient#instance} if unspecified.
*/
constructor(apiClient) {
this.apiClient = apiClient || ApiClient.instance;
}
/**
* Callback function to receive the result of the queryCreatePost operation.
* @callback module:api/QueriesApi~queryCreatePostCallback
* @param {String} error Error message, if any.
* @param {module:model/Query} data The data returned by the service call.
* @param {String} response The complete HTTP response.
*/
/**
* Create query
* Create a new query in the project
* @param {module:model/QueryCreatePostRequest} queryCreatePostRequest
* @param {module:api/QueriesApi~queryCreatePostCallback} callback The callback function, accepting three arguments: error, data, response
* data is of type: {@link module:model/Query}
*/
queryCreatePost(queryCreatePostRequest, callback) {
let postBody = queryCreatePostRequest;
// verify the required parameter 'queryCreatePostRequest' is set
if (queryCreatePostRequest === undefined || queryCreatePostRequest === null) {
throw new Error("Missing the required parameter 'queryCreatePostRequest' when calling queryCreatePost");
}
let pathParams = {
};
let queryParams = {
};
let headerParams = {
};
let formParams = {
};
let authNames = ['ApiKeyAuth'];
let contentTypes = ['application/json'];
let accepts = ['application/json'];
let returnType = Query;
return this.apiClient.callApi(
'/query/create', 'POST',
pathParams, queryParams, headerParams, formParams, postBody,
authNames, contentTypes, accepts, returnType, null, callback
);
}
/**
* Callback function to receive the result of the queryDeleteIdDelete operation.
* @callback module:api/QueriesApi~queryDeleteIdDeleteCallback
* @param {String} error Error message, if any.
* @param data This operation does not return a value.
* @param {String} response The complete HTTP response.
*/
/**
* Delete query
* Delete an existing query
* @param {String} id Query ID
* @param {module:api/QueriesApi~queryDeleteIdDeleteCallback} callback The callback function, accepting three arguments: error, data, response
*/
queryDeleteIdDelete(id, callback) {
let postBody = null;
// verify the required parameter 'id' is set
if (id === undefined || id === null) {
throw new Error("Missing the required parameter 'id' when calling queryDeleteIdDelete");
}
let pathParams = {
'id': id
};
let queryParams = {
};
let headerParams = {
};
let formParams = {
};
let authNames = ['QueryGuard', 'ApiKeyAuth'];
let contentTypes = [];
let accepts = [];
let returnType = null;
return this.apiClient.callApi(
'/query/delete/{id}', 'DELETE',
pathParams, queryParams, headerParams, formParams, postBody,
authNames, contentTypes, accepts, returnType, null, callback
);
}
/**
* Callback function to receive the result of the queryRunIdPost operation.
* @callback module:api/QueriesApi~queryRunIdPostCallback
* @param {String} error Error message, if any.
* @param {Object} data The data returned by the service call.
* @param {String} response The complete HTTP response.
*/
/**
* Run query
* Execute a query with provided data
* @param {String} id Query ID
* @param {Object.<String, Object>} body
* @param {Object} opts Optional parameters
* @param {String} [xTraceId] Trace ID for logging
* @param {module:api/QueriesApi~queryRunIdPostCallback} callback The callback function, accepting three arguments: error, data, response
* data is of type: {@link Object}
*/
queryRunIdPost(id, body, opts, callback) {
opts = opts || {};
let postBody = body;
// verify the required parameter 'id' is set
if (id === undefined || id === null) {
throw new Error("Missing the required parameter 'id' when calling queryRunIdPost");
}
// verify the required parameter 'body' is set
if (body === undefined || body === null) {
throw new Error("Missing the required parameter 'body' when calling queryRunIdPost");
}
let pathParams = {
'id': id
};
let queryParams = {
};
let headerParams = {
'x-trace-id': opts['xTraceId']
};
let formParams = {
};
let authNames = ['QueryGuard', 'ApiKeyAuth'];
let contentTypes = ['application/json'];
let accepts = ['application/json'];
let returnType = Object;
return this.apiClient.callApi(
'/query/run/{id}', 'POST',
pathParams, queryParams, headerParams, formParams, postBody,
authNames, contentTypes, accepts, returnType, null, callback
);
}
/**
* Callback function to receive the result of the queryUpdateIdPost operation.
* @callback module:api/QueriesApi~queryUpdateIdPostCallback
* @param {String} error Error message, if any.
* @param {module:model/Query} data The data returned by the service call.
* @param {String} response The complete HTTP response.
*/
/**
* Update query
* Update an existing query
* @param {String} id Query ID
* @param {module:model/QueryUpdateIdPostRequest} queryUpdateIdPostRequest
* @param {module:api/QueriesApi~queryUpdateIdPostCallback} callback The callback function, accepting three arguments: error, data, response
* data is of type: {@link module:model/Query}
*/
queryUpdateIdPost(id, queryUpdateIdPostRequest, callback) {
let postBody = queryUpdateIdPostRequest;
// verify the required parameter 'id' is set
if (id === undefined || id === null) {
throw new Error("Missing the required parameter 'id' when calling queryUpdateIdPost");
}
// verify the required parameter 'queryUpdateIdPostRequest' is set
if (queryUpdateIdPostRequest === undefined || queryUpdateIdPostRequest === null) {
throw new Error("Missing the required parameter 'queryUpdateIdPostRequest' when calling queryUpdateIdPost");
}
let pathParams = {
'id': id
};
let queryParams = {
};
let headerParams = {
};
let formParams = {
};
let authNames = ['QueryGuard', 'ApiKeyAuth'];
let contentTypes = ['application/json'];
let accepts = ['application/json'];
let returnType = Query;
return this.apiClient.callApi(
'/query/update/{id}', 'POST',
pathParams, queryParams, headerParams, formParams, postBody,
authNames, contentTypes, accepts, returnType, null, callback
);
}
}

View File

@ -1,81 +0,0 @@
/**
* Low-Code Engine API
* API documentation for the Low-Code Engine platform that provides query execution, database management, and project administration capabilities.
*
* The version of the OpenAPI document: 1.0.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*
*/
import ApiClient from "../ApiClient";
import RedisNode from '../model/RedisNode';
import RedisNodeCreatePostRequest from '../model/RedisNodeCreatePostRequest';
/**
* RedisManagement service.
* @module api/RedisManagementApi
* @version 1.0.0
*/
export default class RedisManagementApi {
/**
* Constructs a new RedisManagementApi.
* @alias module:api/RedisManagementApi
* @class
* @param {module:ApiClient} [apiClient] Optional API client implementation to use,
* default to {@link module:ApiClient#instance} if unspecified.
*/
constructor(apiClient) {
this.apiClient = apiClient || ApiClient.instance;
}
/**
* Callback function to receive the result of the redisNodeCreatePost operation.
* @callback module:api/RedisManagementApi~redisNodeCreatePostCallback
* @param {String} error Error message, if any.
* @param {module:model/RedisNode} data The data returned by the service call.
* @param {String} response The complete HTTP response.
*/
/**
* Add Redis node
* Add a new Redis node to the system
* @param {module:model/RedisNodeCreatePostRequest} redisNodeCreatePostRequest
* @param {module:api/RedisManagementApi~redisNodeCreatePostCallback} callback The callback function, accepting three arguments: error, data, response
* data is of type: {@link module:model/RedisNode}
*/
redisNodeCreatePost(redisNodeCreatePostRequest, callback) {
let postBody = redisNodeCreatePostRequest;
// verify the required parameter 'redisNodeCreatePostRequest' is set
if (redisNodeCreatePostRequest === undefined || redisNodeCreatePostRequest === null) {
throw new Error("Missing the required parameter 'redisNodeCreatePostRequest' when calling redisNodeCreatePost");
}
let pathParams = {
};
let queryParams = {
};
let headerParams = {
};
let formParams = {
};
let authNames = ['AdminAuth', 'ApiKeyAuth'];
let contentTypes = ['application/json'];
let accepts = ['application/json'];
let returnType = RedisNode;
return this.apiClient.callApi(
'/redis/node/create', 'POST',
pathParams, queryParams, headerParams, formParams, postBody,
authNames, contentTypes, accepts, returnType, null, callback
);
}
}

View File

@ -1,300 +0,0 @@
/**
* Low-Code Engine API
* API documentation for the Low-Code Engine platform that provides query execution, database management, and project administration capabilities.
*
* The version of the OpenAPI document: 1.0.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*
*/
import ApiClient from './ApiClient';
import ApiTokenGeneratePostRequest from './model/ApiTokenGeneratePostRequest';
import CommandCreatePostRequest from './model/CommandCreatePostRequest';
import CommandUpdateIdPostRequest from './model/CommandUpdateIdPostRequest';
import Database from './model/Database';
import DatabaseCreatePostRequest from './model/DatabaseCreatePostRequest';
import DatabaseMigrationCreatePostRequest from './model/DatabaseMigrationCreatePostRequest';
import DatabaseNode from './model/DatabaseNode';
import DatabaseNodeCreatePostRequest from './model/DatabaseNodeCreatePostRequest';
import DatabaseQueryDatabaseIdPostRequest from './model/DatabaseQueryDatabaseIdPostRequest';
import Error from './model/Error';
import Function from './model/Function';
import FunctionsCreatePostRequest from './model/FunctionsCreatePostRequest';
import FunctionsDeletePostRequest from './model/FunctionsDeletePostRequest';
import Log from './model/Log';
import LogContentInner from './model/LogContentInner';
import LoggerIdFindAllPostRequest from './model/LoggerIdFindAllPostRequest';
import Migration from './model/Migration';
import Project from './model/Project';
import ProjectCreatePutRequest from './model/ProjectCreatePutRequest';
import ProjectSetting from './model/ProjectSetting';
import ProjectSettingsCreatePutRequest from './model/ProjectSettingsCreatePutRequest';
import Query from './model/Query';
import QueryCreatePostRequest from './model/QueryCreatePostRequest';
import QueryUpdateIdPostRequest from './model/QueryUpdateIdPostRequest';
import RedisNode from './model/RedisNode';
import RedisNodeCreatePostRequest from './model/RedisNodeCreatePostRequest';
import Token from './model/Token';
import APITokensApi from './api/APITokensApi';
import CommandsApi from './api/CommandsApi';
import DatabaseManagementApi from './api/DatabaseManagementApi';
import FunctionsApi from './api/FunctionsApi';
import LoggingApi from './api/LoggingApi';
import ProjectManagementApi from './api/ProjectManagementApi';
import QueriesApi from './api/QueriesApi';
import RedisManagementApi from './api/RedisManagementApi';
/**
* API documentation for the Low-Code Engine platform that provides query execution, database management, and project administration capabilities..<br>
* The <code>index</code> module provides access to constructors for all the classes which comprise the public API.
* <p>
* An AMD (recommended!) or CommonJS application will generally do something equivalent to the following:
* <pre>
* var LowCodeEngineApi = require('index'); // See note below*.
* var xxxSvc = new LowCodeEngineApi.XxxApi(); // Allocate the API class we're going to use.
* var yyyModel = new LowCodeEngineApi.Yyy(); // Construct a model instance.
* yyyModel.someProperty = 'someValue';
* ...
* var zzz = xxxSvc.doSomething(yyyModel); // Invoke the service.
* ...
* </pre>
* <em>*NOTE: For a top-level AMD script, use require(['index'], function(){...})
* and put the application logic within the callback function.</em>
* </p>
* <p>
* A non-AMD browser application (discouraged) might do something like this:
* <pre>
* var xxxSvc = new LowCodeEngineApi.XxxApi(); // Allocate the API class we're going to use.
* var yyy = new LowCodeEngineApi.Yyy(); // Construct a model instance.
* yyyModel.someProperty = 'someValue';
* ...
* var zzz = xxxSvc.doSomething(yyyModel); // Invoke the service.
* ...
* </pre>
* </p>
* @module index
* @version 1.0.0
*/
export {
/**
* The ApiClient constructor.
* @property {module:ApiClient}
*/
ApiClient,
/**
* The ApiTokenGeneratePostRequest model constructor.
* @property {module:model/ApiTokenGeneratePostRequest}
*/
ApiTokenGeneratePostRequest,
/**
* The CommandCreatePostRequest model constructor.
* @property {module:model/CommandCreatePostRequest}
*/
CommandCreatePostRequest,
/**
* The CommandUpdateIdPostRequest model constructor.
* @property {module:model/CommandUpdateIdPostRequest}
*/
CommandUpdateIdPostRequest,
/**
* The Database model constructor.
* @property {module:model/Database}
*/
Database,
/**
* The DatabaseCreatePostRequest model constructor.
* @property {module:model/DatabaseCreatePostRequest}
*/
DatabaseCreatePostRequest,
/**
* The DatabaseMigrationCreatePostRequest model constructor.
* @property {module:model/DatabaseMigrationCreatePostRequest}
*/
DatabaseMigrationCreatePostRequest,
/**
* The DatabaseNode model constructor.
* @property {module:model/DatabaseNode}
*/
DatabaseNode,
/**
* The DatabaseNodeCreatePostRequest model constructor.
* @property {module:model/DatabaseNodeCreatePostRequest}
*/
DatabaseNodeCreatePostRequest,
/**
* The DatabaseQueryDatabaseIdPostRequest model constructor.
* @property {module:model/DatabaseQueryDatabaseIdPostRequest}
*/
DatabaseQueryDatabaseIdPostRequest,
/**
* The Error model constructor.
* @property {module:model/Error}
*/
Error,
/**
* The Function model constructor.
* @property {module:model/Function}
*/
Function,
/**
* The FunctionsCreatePostRequest model constructor.
* @property {module:model/FunctionsCreatePostRequest}
*/
FunctionsCreatePostRequest,
/**
* The FunctionsDeletePostRequest model constructor.
* @property {module:model/FunctionsDeletePostRequest}
*/
FunctionsDeletePostRequest,
/**
* The Log model constructor.
* @property {module:model/Log}
*/
Log,
/**
* The LogContentInner model constructor.
* @property {module:model/LogContentInner}
*/
LogContentInner,
/**
* The LoggerIdFindAllPostRequest model constructor.
* @property {module:model/LoggerIdFindAllPostRequest}
*/
LoggerIdFindAllPostRequest,
/**
* The Migration model constructor.
* @property {module:model/Migration}
*/
Migration,
/**
* The Project model constructor.
* @property {module:model/Project}
*/
Project,
/**
* The ProjectCreatePutRequest model constructor.
* @property {module:model/ProjectCreatePutRequest}
*/
ProjectCreatePutRequest,
/**
* The ProjectSetting model constructor.
* @property {module:model/ProjectSetting}
*/
ProjectSetting,
/**
* The ProjectSettingsCreatePutRequest model constructor.
* @property {module:model/ProjectSettingsCreatePutRequest}
*/
ProjectSettingsCreatePutRequest,
/**
* The Query model constructor.
* @property {module:model/Query}
*/
Query,
/**
* The QueryCreatePostRequest model constructor.
* @property {module:model/QueryCreatePostRequest}
*/
QueryCreatePostRequest,
/**
* The QueryUpdateIdPostRequest model constructor.
* @property {module:model/QueryUpdateIdPostRequest}
*/
QueryUpdateIdPostRequest,
/**
* The RedisNode model constructor.
* @property {module:model/RedisNode}
*/
RedisNode,
/**
* The RedisNodeCreatePostRequest model constructor.
* @property {module:model/RedisNodeCreatePostRequest}
*/
RedisNodeCreatePostRequest,
/**
* The Token model constructor.
* @property {module:model/Token}
*/
Token,
/**
* The APITokensApi service constructor.
* @property {module:api/APITokensApi}
*/
APITokensApi,
/**
* The CommandsApi service constructor.
* @property {module:api/CommandsApi}
*/
CommandsApi,
/**
* The DatabaseManagementApi service constructor.
* @property {module:api/DatabaseManagementApi}
*/
DatabaseManagementApi,
/**
* The FunctionsApi service constructor.
* @property {module:api/FunctionsApi}
*/
FunctionsApi,
/**
* The LoggingApi service constructor.
* @property {module:api/LoggingApi}
*/
LoggingApi,
/**
* The ProjectManagementApi service constructor.
* @property {module:api/ProjectManagementApi}
*/
ProjectManagementApi,
/**
* The QueriesApi service constructor.
* @property {module:api/QueriesApi}
*/
QueriesApi,
/**
* The RedisManagementApi service constructor.
* @property {module:api/RedisManagementApi}
*/
RedisManagementApi
};

View File

@ -1,96 +0,0 @@
/**
* Low-Code Engine API
* API documentation for the Low-Code Engine platform that provides query execution, database management, and project administration capabilities.
*
* The version of the OpenAPI document: 1.0.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*
*/
import ApiClient from '../ApiClient';
/**
* The ApiTokenGeneratePostRequest model module.
* @module model/ApiTokenGeneratePostRequest
* @version 1.0.0
*/
class ApiTokenGeneratePostRequest {
/**
* Constructs a new <code>ApiTokenGeneratePostRequest</code>.
* @alias module:model/ApiTokenGeneratePostRequest
* @param id {String} Project ID
*/
constructor(id) {
ApiTokenGeneratePostRequest.initialize(this, id);
}
/**
* Initializes the fields of this object.
* This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
* Only for internal use.
*/
static initialize(obj, id) {
obj['id'] = id;
}
/**
* Constructs a <code>ApiTokenGeneratePostRequest</code> from a plain JavaScript object, optionally creating a new instance.
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
* @param {Object} data The plain JavaScript object bearing properties of interest.
* @param {module:model/ApiTokenGeneratePostRequest} obj Optional instance to populate.
* @return {module:model/ApiTokenGeneratePostRequest} The populated <code>ApiTokenGeneratePostRequest</code> instance.
*/
static constructFromObject(data, obj) {
if (data) {
obj = obj || new ApiTokenGeneratePostRequest();
if (data.hasOwnProperty('id')) {
obj['id'] = ApiClient.convertToType(data['id'], 'String');
}
}
return obj;
}
/**
* Validates the JSON data with respect to <code>ApiTokenGeneratePostRequest</code>.
* @param {Object} data The plain JavaScript object bearing properties of interest.
* @return {boolean} to indicate whether the JSON data is valid with respect to <code>ApiTokenGeneratePostRequest</code>.
*/
static validateJSON(data) {
// check to make sure all required properties are present in the JSON string
for (const property of ApiTokenGeneratePostRequest.RequiredProperties) {
if (!data.hasOwnProperty(property)) {
throw new Error("The required field `" + property + "` is not found in the JSON data: " + JSON.stringify(data));
}
}
// ensure the json data is a string
if (data['id'] && !(typeof data['id'] === 'string' || data['id'] instanceof String)) {
throw new Error("Expected the field `id` to be a primitive type in the JSON string but got " + data['id']);
}
return true;
}
}
ApiTokenGeneratePostRequest.RequiredProperties = ["id"];
/**
* Project ID
* @member {String} id
*/
ApiTokenGeneratePostRequest.prototype['id'] = undefined;
export default ApiTokenGeneratePostRequest;

View File

@ -1,96 +0,0 @@
/**
* Low-Code Engine API
* API documentation for the Low-Code Engine platform that provides query execution, database management, and project administration capabilities.
*
* The version of the OpenAPI document: 1.0.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*
*/
import ApiClient from '../ApiClient';
/**
* The CommandCreatePostRequest model module.
* @module model/CommandCreatePostRequest
* @version 1.0.0
*/
class CommandCreatePostRequest {
/**
* Constructs a new <code>CommandCreatePostRequest</code>.
* @alias module:model/CommandCreatePostRequest
* @param source {String} Command source code
*/
constructor(source) {
CommandCreatePostRequest.initialize(this, source);
}
/**
* Initializes the fields of this object.
* This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
* Only for internal use.
*/
static initialize(obj, source) {
obj['source'] = source;
}
/**
* Constructs a <code>CommandCreatePostRequest</code> from a plain JavaScript object, optionally creating a new instance.
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
* @param {Object} data The plain JavaScript object bearing properties of interest.
* @param {module:model/CommandCreatePostRequest} obj Optional instance to populate.
* @return {module:model/CommandCreatePostRequest} The populated <code>CommandCreatePostRequest</code> instance.
*/
static constructFromObject(data, obj) {
if (data) {
obj = obj || new CommandCreatePostRequest();
if (data.hasOwnProperty('source')) {
obj['source'] = ApiClient.convertToType(data['source'], 'String');
}
}
return obj;
}
/**
* Validates the JSON data with respect to <code>CommandCreatePostRequest</code>.
* @param {Object} data The plain JavaScript object bearing properties of interest.
* @return {boolean} to indicate whether the JSON data is valid with respect to <code>CommandCreatePostRequest</code>.
*/
static validateJSON(data) {
// check to make sure all required properties are present in the JSON string
for (const property of CommandCreatePostRequest.RequiredProperties) {
if (!data.hasOwnProperty(property)) {
throw new Error("The required field `" + property + "` is not found in the JSON data: " + JSON.stringify(data));
}
}
// ensure the json data is a string
if (data['source'] && !(typeof data['source'] === 'string' || data['source'] instanceof String)) {
throw new Error("Expected the field `source` to be a primitive type in the JSON string but got " + data['source']);
}
return true;
}
}
CommandCreatePostRequest.RequiredProperties = ["source"];
/**
* Command source code
* @member {String} source
*/
CommandCreatePostRequest.prototype['source'] = undefined;
export default CommandCreatePostRequest;

View File

@ -1,88 +0,0 @@
/**
* Low-Code Engine API
* API documentation for the Low-Code Engine platform that provides query execution, database management, and project administration capabilities.
*
* The version of the OpenAPI document: 1.0.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*
*/
import ApiClient from '../ApiClient';
/**
* The CommandUpdateIdPostRequest model module.
* @module model/CommandUpdateIdPostRequest
* @version 1.0.0
*/
class CommandUpdateIdPostRequest {
/**
* Constructs a new <code>CommandUpdateIdPostRequest</code>.
* @alias module:model/CommandUpdateIdPostRequest
*/
constructor() {
CommandUpdateIdPostRequest.initialize(this);
}
/**
* Initializes the fields of this object.
* This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
* Only for internal use.
*/
static initialize(obj) {
}
/**
* Constructs a <code>CommandUpdateIdPostRequest</code> from a plain JavaScript object, optionally creating a new instance.
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
* @param {Object} data The plain JavaScript object bearing properties of interest.
* @param {module:model/CommandUpdateIdPostRequest} obj Optional instance to populate.
* @return {module:model/CommandUpdateIdPostRequest} The populated <code>CommandUpdateIdPostRequest</code> instance.
*/
static constructFromObject(data, obj) {
if (data) {
obj = obj || new CommandUpdateIdPostRequest();
if (data.hasOwnProperty('source')) {
obj['source'] = ApiClient.convertToType(data['source'], 'String');
}
}
return obj;
}
/**
* Validates the JSON data with respect to <code>CommandUpdateIdPostRequest</code>.
* @param {Object} data The plain JavaScript object bearing properties of interest.
* @return {boolean} to indicate whether the JSON data is valid with respect to <code>CommandUpdateIdPostRequest</code>.
*/
static validateJSON(data) {
// ensure the json data is a string
if (data['source'] && !(typeof data['source'] === 'string' || data['source'] instanceof String)) {
throw new Error("Expected the field `source` to be a primitive type in the JSON string but got " + data['source']);
}
return true;
}
}
/**
* Updated command source code
* @member {String} source
*/
CommandUpdateIdPostRequest.prototype['source'] = undefined;
export default CommandUpdateIdPostRequest;

View File

@ -1,185 +0,0 @@
/**
* Low-Code Engine API
* API documentation for the Low-Code Engine platform that provides query execution, database management, and project administration capabilities.
*
* The version of the OpenAPI document: 1.0.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*
*/
import ApiClient from '../ApiClient';
import DatabaseNode from './DatabaseNode';
import Migration from './Migration';
import Project from './Project';
/**
* The Database model module.
* @module model/Database
* @version 1.0.0
*/
class Database {
/**
* Constructs a new <code>Database</code>.
* @alias module:model/Database
*/
constructor() {
Database.initialize(this);
}
/**
* Initializes the fields of this object.
* This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
* Only for internal use.
*/
static initialize(obj) {
}
/**
* Constructs a <code>Database</code> from a plain JavaScript object, optionally creating a new instance.
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
* @param {Object} data The plain JavaScript object bearing properties of interest.
* @param {module:model/Database} obj Optional instance to populate.
* @return {module:model/Database} The populated <code>Database</code> instance.
*/
static constructFromObject(data, obj) {
if (data) {
obj = obj || new Database();
if (data.hasOwnProperty('id')) {
obj['id'] = ApiClient.convertToType(data['id'], 'String');
}
if (data.hasOwnProperty('q_username')) {
obj['q_username'] = ApiClient.convertToType(data['q_username'], 'String');
}
if (data.hasOwnProperty('c_username')) {
obj['c_username'] = ApiClient.convertToType(data['c_username'], 'String');
}
if (data.hasOwnProperty('password')) {
obj['password'] = ApiClient.convertToType(data['password'], 'String');
}
if (data.hasOwnProperty('database')) {
obj['database'] = ApiClient.convertToType(data['database'], 'String');
}
if (data.hasOwnProperty('migrations')) {
obj['migrations'] = ApiClient.convertToType(data['migrations'], [Migration]);
}
if (data.hasOwnProperty('project')) {
obj['project'] = Project.constructFromObject(data['project']);
}
if (data.hasOwnProperty('node')) {
obj['node'] = DatabaseNode.constructFromObject(data['node']);
}
}
return obj;
}
/**
* Validates the JSON data with respect to <code>Database</code>.
* @param {Object} data The plain JavaScript object bearing properties of interest.
* @return {boolean} to indicate whether the JSON data is valid with respect to <code>Database</code>.
*/
static validateJSON(data) {
// ensure the json data is a string
if (data['id'] && !(typeof data['id'] === 'string' || data['id'] instanceof String)) {
throw new Error("Expected the field `id` to be a primitive type in the JSON string but got " + data['id']);
}
// ensure the json data is a string
if (data['q_username'] && !(typeof data['q_username'] === 'string' || data['q_username'] instanceof String)) {
throw new Error("Expected the field `q_username` to be a primitive type in the JSON string but got " + data['q_username']);
}
// ensure the json data is a string
if (data['c_username'] && !(typeof data['c_username'] === 'string' || data['c_username'] instanceof String)) {
throw new Error("Expected the field `c_username` to be a primitive type in the JSON string but got " + data['c_username']);
}
// ensure the json data is a string
if (data['password'] && !(typeof data['password'] === 'string' || data['password'] instanceof String)) {
throw new Error("Expected the field `password` to be a primitive type in the JSON string but got " + data['password']);
}
// ensure the json data is a string
if (data['database'] && !(typeof data['database'] === 'string' || data['database'] instanceof String)) {
throw new Error("Expected the field `database` to be a primitive type in the JSON string but got " + data['database']);
}
if (data['migrations']) { // data not null
// ensure the json data is an array
if (!Array.isArray(data['migrations'])) {
throw new Error("Expected the field `migrations` to be an array in the JSON data but got " + data['migrations']);
}
// validate the optional field `migrations` (array)
for (const item of data['migrations']) {
Migration.validateJSON(item);
};
}
// validate the optional field `project`
if (data['project']) { // data not null
Project.validateJSON(data['project']);
}
// validate the optional field `node`
if (data['node']) { // data not null
DatabaseNode.validateJSON(data['node']);
}
return true;
}
}
/**
* Unique database identifier
* @member {String} id
*/
Database.prototype['id'] = undefined;
/**
* Query username for database access
* @member {String} q_username
*/
Database.prototype['q_username'] = undefined;
/**
* Command username for database access
* @member {String} c_username
*/
Database.prototype['c_username'] = undefined;
/**
* Database password
* @member {String} password
*/
Database.prototype['password'] = undefined;
/**
* Database name
* @member {String} database
*/
Database.prototype['database'] = undefined;
/**
* @member {Array.<module:model/Migration>} migrations
*/
Database.prototype['migrations'] = undefined;
/**
* @member {module:model/Project} project
*/
Database.prototype['project'] = undefined;
/**
* @member {module:model/DatabaseNode} node
*/
Database.prototype['node'] = undefined;
export default Database;

View File

@ -1,96 +0,0 @@
/**
* Low-Code Engine API
* API documentation for the Low-Code Engine platform that provides query execution, database management, and project administration capabilities.
*
* The version of the OpenAPI document: 1.0.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*
*/
import ApiClient from '../ApiClient';
/**
* The DatabaseCreatePostRequest model module.
* @module model/DatabaseCreatePostRequest
* @version 1.0.0
*/
class DatabaseCreatePostRequest {
/**
* Constructs a new <code>DatabaseCreatePostRequest</code>.
* @alias module:model/DatabaseCreatePostRequest
* @param projectId {String} Project ID
*/
constructor(projectId) {
DatabaseCreatePostRequest.initialize(this, projectId);
}
/**
* Initializes the fields of this object.
* This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
* Only for internal use.
*/
static initialize(obj, projectId) {
obj['projectId'] = projectId;
}
/**
* Constructs a <code>DatabaseCreatePostRequest</code> from a plain JavaScript object, optionally creating a new instance.
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
* @param {Object} data The plain JavaScript object bearing properties of interest.
* @param {module:model/DatabaseCreatePostRequest} obj Optional instance to populate.
* @return {module:model/DatabaseCreatePostRequest} The populated <code>DatabaseCreatePostRequest</code> instance.
*/
static constructFromObject(data, obj) {
if (data) {
obj = obj || new DatabaseCreatePostRequest();
if (data.hasOwnProperty('projectId')) {
obj['projectId'] = ApiClient.convertToType(data['projectId'], 'String');
}
}
return obj;
}
/**
* Validates the JSON data with respect to <code>DatabaseCreatePostRequest</code>.
* @param {Object} data The plain JavaScript object bearing properties of interest.
* @return {boolean} to indicate whether the JSON data is valid with respect to <code>DatabaseCreatePostRequest</code>.
*/
static validateJSON(data) {
// check to make sure all required properties are present in the JSON string
for (const property of DatabaseCreatePostRequest.RequiredProperties) {
if (!data.hasOwnProperty(property)) {
throw new Error("The required field `" + property + "` is not found in the JSON data: " + JSON.stringify(data));
}
}
// ensure the json data is a string
if (data['projectId'] && !(typeof data['projectId'] === 'string' || data['projectId'] instanceof String)) {
throw new Error("Expected the field `projectId` to be a primitive type in the JSON string but got " + data['projectId']);
}
return true;
}
}
DatabaseCreatePostRequest.RequiredProperties = ["projectId"];
/**
* Project ID
* @member {String} projectId
*/
DatabaseCreatePostRequest.prototype['projectId'] = undefined;
export default DatabaseCreatePostRequest;

View File

@ -1,126 +0,0 @@
/**
* Low-Code Engine API
* API documentation for the Low-Code Engine platform that provides query execution, database management, and project administration capabilities.
*
* The version of the OpenAPI document: 1.0.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*
*/
import ApiClient from '../ApiClient';
/**
* The DatabaseMigrationCreatePostRequest model module.
* @module model/DatabaseMigrationCreatePostRequest
* @version 1.0.0
*/
class DatabaseMigrationCreatePostRequest {
/**
* Constructs a new <code>DatabaseMigrationCreatePostRequest</code>.
* @alias module:model/DatabaseMigrationCreatePostRequest
* @param up {String} Migration up SQL
* @param down {String} Migration down SQL
* @param databaseId {String} Database ID
*/
constructor(up, down, databaseId) {
DatabaseMigrationCreatePostRequest.initialize(this, up, down, databaseId);
}
/**
* Initializes the fields of this object.
* This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
* Only for internal use.
*/
static initialize(obj, up, down, databaseId) {
obj['up'] = up;
obj['down'] = down;
obj['databaseId'] = databaseId;
}
/**
* Constructs a <code>DatabaseMigrationCreatePostRequest</code> from a plain JavaScript object, optionally creating a new instance.
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
* @param {Object} data The plain JavaScript object bearing properties of interest.
* @param {module:model/DatabaseMigrationCreatePostRequest} obj Optional instance to populate.
* @return {module:model/DatabaseMigrationCreatePostRequest} The populated <code>DatabaseMigrationCreatePostRequest</code> instance.
*/
static constructFromObject(data, obj) {
if (data) {
obj = obj || new DatabaseMigrationCreatePostRequest();
if (data.hasOwnProperty('up')) {
obj['up'] = ApiClient.convertToType(data['up'], 'String');
}
if (data.hasOwnProperty('down')) {
obj['down'] = ApiClient.convertToType(data['down'], 'String');
}
if (data.hasOwnProperty('databaseId')) {
obj['databaseId'] = ApiClient.convertToType(data['databaseId'], 'String');
}
}
return obj;
}
/**
* Validates the JSON data with respect to <code>DatabaseMigrationCreatePostRequest</code>.
* @param {Object} data The plain JavaScript object bearing properties of interest.
* @return {boolean} to indicate whether the JSON data is valid with respect to <code>DatabaseMigrationCreatePostRequest</code>.
*/
static validateJSON(data) {
// check to make sure all required properties are present in the JSON string
for (const property of DatabaseMigrationCreatePostRequest.RequiredProperties) {
if (!data.hasOwnProperty(property)) {
throw new Error("The required field `" + property + "` is not found in the JSON data: " + JSON.stringify(data));
}
}
// ensure the json data is a string
if (data['up'] && !(typeof data['up'] === 'string' || data['up'] instanceof String)) {
throw new Error("Expected the field `up` to be a primitive type in the JSON string but got " + data['up']);
}
// ensure the json data is a string
if (data['down'] && !(typeof data['down'] === 'string' || data['down'] instanceof String)) {
throw new Error("Expected the field `down` to be a primitive type in the JSON string but got " + data['down']);
}
// ensure the json data is a string
if (data['databaseId'] && !(typeof data['databaseId'] === 'string' || data['databaseId'] instanceof String)) {
throw new Error("Expected the field `databaseId` to be a primitive type in the JSON string but got " + data['databaseId']);
}
return true;
}
}
DatabaseMigrationCreatePostRequest.RequiredProperties = ["up", "down", "databaseId"];
/**
* Migration up SQL
* @member {String} up
*/
DatabaseMigrationCreatePostRequest.prototype['up'] = undefined;
/**
* Migration down SQL
* @member {String} down
*/
DatabaseMigrationCreatePostRequest.prototype['down'] = undefined;
/**
* Database ID
* @member {String} databaseId
*/
DatabaseMigrationCreatePostRequest.prototype['databaseId'] = undefined;
export default DatabaseMigrationCreatePostRequest;

View File

@ -1,155 +0,0 @@
/**
* Low-Code Engine API
* API documentation for the Low-Code Engine platform that provides query execution, database management, and project administration capabilities.
*
* The version of the OpenAPI document: 1.0.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*
*/
import ApiClient from '../ApiClient';
import Database from './Database';
/**
* The DatabaseNode model module.
* @module model/DatabaseNode
* @version 1.0.0
*/
class DatabaseNode {
/**
* Constructs a new <code>DatabaseNode</code>.
* @alias module:model/DatabaseNode
*/
constructor() {
DatabaseNode.initialize(this);
}
/**
* Initializes the fields of this object.
* This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
* Only for internal use.
*/
static initialize(obj) {
}
/**
* Constructs a <code>DatabaseNode</code> from a plain JavaScript object, optionally creating a new instance.
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
* @param {Object} data The plain JavaScript object bearing properties of interest.
* @param {module:model/DatabaseNode} obj Optional instance to populate.
* @return {module:model/DatabaseNode} The populated <code>DatabaseNode</code> instance.
*/
static constructFromObject(data, obj) {
if (data) {
obj = obj || new DatabaseNode();
if (data.hasOwnProperty('id')) {
obj['id'] = ApiClient.convertToType(data['id'], 'String');
}
if (data.hasOwnProperty('host')) {
obj['host'] = ApiClient.convertToType(data['host'], 'String');
}
if (data.hasOwnProperty('port')) {
obj['port'] = ApiClient.convertToType(data['port'], 'Number');
}
if (data.hasOwnProperty('username')) {
obj['username'] = ApiClient.convertToType(data['username'], 'String');
}
if (data.hasOwnProperty('password')) {
obj['password'] = ApiClient.convertToType(data['password'], 'String');
}
if (data.hasOwnProperty('databases')) {
obj['databases'] = ApiClient.convertToType(data['databases'], [Database]);
}
}
return obj;
}
/**
* Validates the JSON data with respect to <code>DatabaseNode</code>.
* @param {Object} data The plain JavaScript object bearing properties of interest.
* @return {boolean} to indicate whether the JSON data is valid with respect to <code>DatabaseNode</code>.
*/
static validateJSON(data) {
// ensure the json data is a string
if (data['id'] && !(typeof data['id'] === 'string' || data['id'] instanceof String)) {
throw new Error("Expected the field `id` to be a primitive type in the JSON string but got " + data['id']);
}
// ensure the json data is a string
if (data['host'] && !(typeof data['host'] === 'string' || data['host'] instanceof String)) {
throw new Error("Expected the field `host` to be a primitive type in the JSON string but got " + data['host']);
}
// ensure the json data is a string
if (data['username'] && !(typeof data['username'] === 'string' || data['username'] instanceof String)) {
throw new Error("Expected the field `username` to be a primitive type in the JSON string but got " + data['username']);
}
// ensure the json data is a string
if (data['password'] && !(typeof data['password'] === 'string' || data['password'] instanceof String)) {
throw new Error("Expected the field `password` to be a primitive type in the JSON string but got " + data['password']);
}
if (data['databases']) { // data not null
// ensure the json data is an array
if (!Array.isArray(data['databases'])) {
throw new Error("Expected the field `databases` to be an array in the JSON data but got " + data['databases']);
}
// validate the optional field `databases` (array)
for (const item of data['databases']) {
Database.validateJSON(item);
};
}
return true;
}
}
/**
* Unique database node identifier
* @member {String} id
*/
DatabaseNode.prototype['id'] = undefined;
/**
* Database host
* @member {String} host
*/
DatabaseNode.prototype['host'] = undefined;
/**
* Database port
* @member {Number} port
*/
DatabaseNode.prototype['port'] = undefined;
/**
* Database username
* @member {String} username
*/
DatabaseNode.prototype['username'] = undefined;
/**
* Database password
* @member {String} password
*/
DatabaseNode.prototype['password'] = undefined;
/**
* @member {Array.<module:model/Database>} databases
*/
DatabaseNode.prototype['databases'] = undefined;
export default DatabaseNode;

View File

@ -1,137 +0,0 @@
/**
* Low-Code Engine API
* API documentation for the Low-Code Engine platform that provides query execution, database management, and project administration capabilities.
*
* The version of the OpenAPI document: 1.0.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*
*/
import ApiClient from '../ApiClient';
/**
* The DatabaseNodeCreatePostRequest model module.
* @module model/DatabaseNodeCreatePostRequest
* @version 1.0.0
*/
class DatabaseNodeCreatePostRequest {
/**
* Constructs a new <code>DatabaseNodeCreatePostRequest</code>.
* @alias module:model/DatabaseNodeCreatePostRequest
* @param host {String} Database host
* @param port {Number} Database port
* @param username {String} Database username
* @param password {String} Database password
*/
constructor(host, port, username, password) {
DatabaseNodeCreatePostRequest.initialize(this, host, port, username, password);
}
/**
* Initializes the fields of this object.
* This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
* Only for internal use.
*/
static initialize(obj, host, port, username, password) {
obj['host'] = host;
obj['port'] = port;
obj['username'] = username;
obj['password'] = password;
}
/**
* Constructs a <code>DatabaseNodeCreatePostRequest</code> from a plain JavaScript object, optionally creating a new instance.
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
* @param {Object} data The plain JavaScript object bearing properties of interest.
* @param {module:model/DatabaseNodeCreatePostRequest} obj Optional instance to populate.
* @return {module:model/DatabaseNodeCreatePostRequest} The populated <code>DatabaseNodeCreatePostRequest</code> instance.
*/
static constructFromObject(data, obj) {
if (data) {
obj = obj || new DatabaseNodeCreatePostRequest();
if (data.hasOwnProperty('host')) {
obj['host'] = ApiClient.convertToType(data['host'], 'String');
}
if (data.hasOwnProperty('port')) {
obj['port'] = ApiClient.convertToType(data['port'], 'Number');
}
if (data.hasOwnProperty('username')) {
obj['username'] = ApiClient.convertToType(data['username'], 'String');
}
if (data.hasOwnProperty('password')) {
obj['password'] = ApiClient.convertToType(data['password'], 'String');
}
}
return obj;
}
/**
* Validates the JSON data with respect to <code>DatabaseNodeCreatePostRequest</code>.
* @param {Object} data The plain JavaScript object bearing properties of interest.
* @return {boolean} to indicate whether the JSON data is valid with respect to <code>DatabaseNodeCreatePostRequest</code>.
*/
static validateJSON(data) {
// check to make sure all required properties are present in the JSON string
for (const property of DatabaseNodeCreatePostRequest.RequiredProperties) {
if (!data.hasOwnProperty(property)) {
throw new Error("The required field `" + property + "` is not found in the JSON data: " + JSON.stringify(data));
}
}
// ensure the json data is a string
if (data['host'] && !(typeof data['host'] === 'string' || data['host'] instanceof String)) {
throw new Error("Expected the field `host` to be a primitive type in the JSON string but got " + data['host']);
}
// ensure the json data is a string
if (data['username'] && !(typeof data['username'] === 'string' || data['username'] instanceof String)) {
throw new Error("Expected the field `username` to be a primitive type in the JSON string but got " + data['username']);
}
// ensure the json data is a string
if (data['password'] && !(typeof data['password'] === 'string' || data['password'] instanceof String)) {
throw new Error("Expected the field `password` to be a primitive type in the JSON string but got " + data['password']);
}
return true;
}
}
DatabaseNodeCreatePostRequest.RequiredProperties = ["host", "port", "username", "password"];
/**
* Database host
* @member {String} host
*/
DatabaseNodeCreatePostRequest.prototype['host'] = undefined;
/**
* Database port
* @member {Number} port
*/
DatabaseNodeCreatePostRequest.prototype['port'] = undefined;
/**
* Database username
* @member {String} username
*/
DatabaseNodeCreatePostRequest.prototype['username'] = undefined;
/**
* Database password
* @member {String} password
*/
DatabaseNodeCreatePostRequest.prototype['password'] = undefined;
export default DatabaseNodeCreatePostRequest;

View File

@ -1,96 +0,0 @@
/**
* Low-Code Engine API
* API documentation for the Low-Code Engine platform that provides query execution, database management, and project administration capabilities.
*
* The version of the OpenAPI document: 1.0.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*
*/
import ApiClient from '../ApiClient';
/**
* The DatabaseQueryDatabaseIdPostRequest model module.
* @module model/DatabaseQueryDatabaseIdPostRequest
* @version 1.0.0
*/
class DatabaseQueryDatabaseIdPostRequest {
/**
* Constructs a new <code>DatabaseQueryDatabaseIdPostRequest</code>.
* @alias module:model/DatabaseQueryDatabaseIdPostRequest
* @param query {String} SQL query to execute
*/
constructor(query) {
DatabaseQueryDatabaseIdPostRequest.initialize(this, query);
}
/**
* Initializes the fields of this object.
* This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
* Only for internal use.
*/
static initialize(obj, query) {
obj['query'] = query;
}
/**
* Constructs a <code>DatabaseQueryDatabaseIdPostRequest</code> from a plain JavaScript object, optionally creating a new instance.
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
* @param {Object} data The plain JavaScript object bearing properties of interest.
* @param {module:model/DatabaseQueryDatabaseIdPostRequest} obj Optional instance to populate.
* @return {module:model/DatabaseQueryDatabaseIdPostRequest} The populated <code>DatabaseQueryDatabaseIdPostRequest</code> instance.
*/
static constructFromObject(data, obj) {
if (data) {
obj = obj || new DatabaseQueryDatabaseIdPostRequest();
if (data.hasOwnProperty('query')) {
obj['query'] = ApiClient.convertToType(data['query'], 'String');
}
}
return obj;
}
/**
* Validates the JSON data with respect to <code>DatabaseQueryDatabaseIdPostRequest</code>.
* @param {Object} data The plain JavaScript object bearing properties of interest.
* @return {boolean} to indicate whether the JSON data is valid with respect to <code>DatabaseQueryDatabaseIdPostRequest</code>.
*/
static validateJSON(data) {
// check to make sure all required properties are present in the JSON string
for (const property of DatabaseQueryDatabaseIdPostRequest.RequiredProperties) {
if (!data.hasOwnProperty(property)) {
throw new Error("The required field `" + property + "` is not found in the JSON data: " + JSON.stringify(data));
}
}
// ensure the json data is a string
if (data['query'] && !(typeof data['query'] === 'string' || data['query'] instanceof String)) {
throw new Error("Expected the field `query` to be a primitive type in the JSON string but got " + data['query']);
}
return true;
}
}
DatabaseQueryDatabaseIdPostRequest.RequiredProperties = ["query"];
/**
* SQL query to execute
* @member {String} query
*/
DatabaseQueryDatabaseIdPostRequest.prototype['query'] = undefined;
export default DatabaseQueryDatabaseIdPostRequest;

View File

@ -1,101 +0,0 @@
/**
* Low-Code Engine API
* API documentation for the Low-Code Engine platform that provides query execution, database management, and project administration capabilities.
*
* The version of the OpenAPI document: 1.0.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*
*/
import ApiClient from '../ApiClient';
/**
* The Error model module.
* @module model/Error
* @version 1.0.0
*/
class Error {
/**
* Constructs a new <code>Error</code>.
* @alias module:model/Error
*/
constructor() {
Error.initialize(this);
}
/**
* Initializes the fields of this object.
* This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
* Only for internal use.
*/
static initialize(obj) {
}
/**
* Constructs a <code>Error</code> from a plain JavaScript object, optionally creating a new instance.
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
* @param {Object} data The plain JavaScript object bearing properties of interest.
* @param {module:model/Error} obj Optional instance to populate.
* @return {module:model/Error} The populated <code>Error</code> instance.
*/
static constructFromObject(data, obj) {
if (data) {
obj = obj || new Error();
if (data.hasOwnProperty('error')) {
obj['error'] = ApiClient.convertToType(data['error'], 'String');
}
if (data.hasOwnProperty('details')) {
obj['details'] = ApiClient.convertToType(data['details'], 'String');
}
}
return obj;
}
/**
* Validates the JSON data with respect to <code>Error</code>.
* @param {Object} data The plain JavaScript object bearing properties of interest.
* @return {boolean} to indicate whether the JSON data is valid with respect to <code>Error</code>.
*/
static validateJSON(data) {
// ensure the json data is a string
if (data['error'] && !(typeof data['error'] === 'string' || data['error'] instanceof String)) {
throw new Error("Expected the field `error` to be a primitive type in the JSON string but got " + data['error']);
}
// ensure the json data is a string
if (data['details'] && !(typeof data['details'] === 'string' || data['details'] instanceof String)) {
throw new Error("Expected the field `details` to be a primitive type in the JSON string but got " + data['details']);
}
return true;
}
}
/**
* Error message
* @member {String} error
*/
Error.prototype['error'] = undefined;
/**
* Error details
* @member {String} details
*/
Error.prototype['details'] = undefined;
export default Error;

View File

@ -1,127 +0,0 @@
/**
* Low-Code Engine API
* API documentation for the Low-Code Engine platform that provides query execution, database management, and project administration capabilities.
*
* The version of the OpenAPI document: 1.0.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*
*/
import ApiClient from '../ApiClient';
import Project from './Project';
/**
* The Function model module.
* @module model/Function
* @version 1.0.0
*/
class Function {
/**
* Constructs a new <code>Function</code>.
* @alias module:model/Function
*/
constructor() {
Function.initialize(this);
}
/**
* Initializes the fields of this object.
* This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
* Only for internal use.
*/
static initialize(obj) {
}
/**
* Constructs a <code>Function</code> from a plain JavaScript object, optionally creating a new instance.
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
* @param {Object} data The plain JavaScript object bearing properties of interest.
* @param {module:model/Function} obj Optional instance to populate.
* @return {module:model/Function} The populated <code>Function</code> instance.
*/
static constructFromObject(data, obj) {
if (data) {
obj = obj || new Function();
if (data.hasOwnProperty('id')) {
obj['id'] = ApiClient.convertToType(data['id'], 'String');
}
if (data.hasOwnProperty('name')) {
obj['name'] = ApiClient.convertToType(data['name'], 'String');
}
if (data.hasOwnProperty('source')) {
obj['source'] = ApiClient.convertToType(data['source'], 'String');
}
if (data.hasOwnProperty('project')) {
obj['project'] = Project.constructFromObject(data['project']);
}
}
return obj;
}
/**
* Validates the JSON data with respect to <code>Function</code>.
* @param {Object} data The plain JavaScript object bearing properties of interest.
* @return {boolean} to indicate whether the JSON data is valid with respect to <code>Function</code>.
*/
static validateJSON(data) {
// ensure the json data is a string
if (data['id'] && !(typeof data['id'] === 'string' || data['id'] instanceof String)) {
throw new Error("Expected the field `id` to be a primitive type in the JSON string but got " + data['id']);
}
// ensure the json data is a string
if (data['name'] && !(typeof data['name'] === 'string' || data['name'] instanceof String)) {
throw new Error("Expected the field `name` to be a primitive type in the JSON string but got " + data['name']);
}
// ensure the json data is a string
if (data['source'] && !(typeof data['source'] === 'string' || data['source'] instanceof String)) {
throw new Error("Expected the field `source` to be a primitive type in the JSON string but got " + data['source']);
}
// validate the optional field `project`
if (data['project']) { // data not null
Project.validateJSON(data['project']);
}
return true;
}
}
/**
* Unique function identifier
* @member {String} id
*/
Function.prototype['id'] = undefined;
/**
* Function name
* @member {String} name
*/
Function.prototype['name'] = undefined;
/**
* Function source code
* @member {String} source
*/
Function.prototype['source'] = undefined;
/**
* @member {module:model/Project} project
*/
Function.prototype['project'] = undefined;
export default Function;

View File

@ -1,111 +0,0 @@
/**
* Low-Code Engine API
* API documentation for the Low-Code Engine platform that provides query execution, database management, and project administration capabilities.
*
* The version of the OpenAPI document: 1.0.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*
*/
import ApiClient from '../ApiClient';
/**
* The FunctionsCreatePostRequest model module.
* @module model/FunctionsCreatePostRequest
* @version 1.0.0
*/
class FunctionsCreatePostRequest {
/**
* Constructs a new <code>FunctionsCreatePostRequest</code>.
* @alias module:model/FunctionsCreatePostRequest
* @param name {String} Function name
* @param source {String} Function source code
*/
constructor(name, source) {
FunctionsCreatePostRequest.initialize(this, name, source);
}
/**
* Initializes the fields of this object.
* This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
* Only for internal use.
*/
static initialize(obj, name, source) {
obj['name'] = name;
obj['source'] = source;
}
/**
* Constructs a <code>FunctionsCreatePostRequest</code> from a plain JavaScript object, optionally creating a new instance.
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
* @param {Object} data The plain JavaScript object bearing properties of interest.
* @param {module:model/FunctionsCreatePostRequest} obj Optional instance to populate.
* @return {module:model/FunctionsCreatePostRequest} The populated <code>FunctionsCreatePostRequest</code> instance.
*/
static constructFromObject(data, obj) {
if (data) {
obj = obj || new FunctionsCreatePostRequest();
if (data.hasOwnProperty('name')) {
obj['name'] = ApiClient.convertToType(data['name'], 'String');
}
if (data.hasOwnProperty('source')) {
obj['source'] = ApiClient.convertToType(data['source'], 'String');
}
}
return obj;
}
/**
* Validates the JSON data with respect to <code>FunctionsCreatePostRequest</code>.
* @param {Object} data The plain JavaScript object bearing properties of interest.
* @return {boolean} to indicate whether the JSON data is valid with respect to <code>FunctionsCreatePostRequest</code>.
*/
static validateJSON(data) {
// check to make sure all required properties are present in the JSON string
for (const property of FunctionsCreatePostRequest.RequiredProperties) {
if (!data.hasOwnProperty(property)) {
throw new Error("The required field `" + property + "` is not found in the JSON data: " + JSON.stringify(data));
}
}
// ensure the json data is a string
if (data['name'] && !(typeof data['name'] === 'string' || data['name'] instanceof String)) {
throw new Error("Expected the field `name` to be a primitive type in the JSON string but got " + data['name']);
}
// ensure the json data is a string
if (data['source'] && !(typeof data['source'] === 'string' || data['source'] instanceof String)) {
throw new Error("Expected the field `source` to be a primitive type in the JSON string but got " + data['source']);
}
return true;
}
}
FunctionsCreatePostRequest.RequiredProperties = ["name", "source"];
/**
* Function name
* @member {String} name
*/
FunctionsCreatePostRequest.prototype['name'] = undefined;
/**
* Function source code
* @member {String} source
*/
FunctionsCreatePostRequest.prototype['source'] = undefined;
export default FunctionsCreatePostRequest;

View File

@ -1,96 +0,0 @@
/**
* Low-Code Engine API
* API documentation for the Low-Code Engine platform that provides query execution, database management, and project administration capabilities.
*
* The version of the OpenAPI document: 1.0.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*
*/
import ApiClient from '../ApiClient';
/**
* The FunctionsDeletePostRequest model module.
* @module model/FunctionsDeletePostRequest
* @version 1.0.0
*/
class FunctionsDeletePostRequest {
/**
* Constructs a new <code>FunctionsDeletePostRequest</code>.
* @alias module:model/FunctionsDeletePostRequest
* @param name {String} Function name to delete
*/
constructor(name) {
FunctionsDeletePostRequest.initialize(this, name);
}
/**
* Initializes the fields of this object.
* This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
* Only for internal use.
*/
static initialize(obj, name) {
obj['name'] = name;
}
/**
* Constructs a <code>FunctionsDeletePostRequest</code> from a plain JavaScript object, optionally creating a new instance.
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
* @param {Object} data The plain JavaScript object bearing properties of interest.
* @param {module:model/FunctionsDeletePostRequest} obj Optional instance to populate.
* @return {module:model/FunctionsDeletePostRequest} The populated <code>FunctionsDeletePostRequest</code> instance.
*/
static constructFromObject(data, obj) {
if (data) {
obj = obj || new FunctionsDeletePostRequest();
if (data.hasOwnProperty('name')) {
obj['name'] = ApiClient.convertToType(data['name'], 'String');
}
}
return obj;
}
/**
* Validates the JSON data with respect to <code>FunctionsDeletePostRequest</code>.
* @param {Object} data The plain JavaScript object bearing properties of interest.
* @return {boolean} to indicate whether the JSON data is valid with respect to <code>FunctionsDeletePostRequest</code>.
*/
static validateJSON(data) {
// check to make sure all required properties are present in the JSON string
for (const property of FunctionsDeletePostRequest.RequiredProperties) {
if (!data.hasOwnProperty(property)) {
throw new Error("The required field `" + property + "` is not found in the JSON data: " + JSON.stringify(data));
}
}
// ensure the json data is a string
if (data['name'] && !(typeof data['name'] === 'string' || data['name'] instanceof String)) {
throw new Error("Expected the field `name` to be a primitive type in the JSON string but got " + data['name']);
}
return true;
}
}
FunctionsDeletePostRequest.RequiredProperties = ["name"];
/**
* Function name to delete
* @member {String} name
*/
FunctionsDeletePostRequest.prototype['name'] = undefined;
export default FunctionsDeletePostRequest;

View File

@ -1,217 +0,0 @@
/**
* Low-Code Engine API
* API documentation for the Low-Code Engine platform that provides query execution, database management, and project administration capabilities.
*
* The version of the OpenAPI document: 1.0.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*
*/
import ApiClient from '../ApiClient';
import LogContentInner from './LogContentInner';
import Project from './Project';
import Query from './Query';
/**
* The Log model module.
* @module model/Log
* @version 1.0.0
*/
class Log {
/**
* Constructs a new <code>Log</code>.
* @alias module:model/Log
*/
constructor() {
Log.initialize(this);
}
/**
* Initializes the fields of this object.
* This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
* Only for internal use.
*/
static initialize(obj) {
}
/**
* Constructs a <code>Log</code> from a plain JavaScript object, optionally creating a new instance.
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
* @param {Object} data The plain JavaScript object bearing properties of interest.
* @param {module:model/Log} obj Optional instance to populate.
* @return {module:model/Log} The populated <code>Log</code> instance.
*/
static constructFromObject(data, obj) {
if (data) {
obj = obj || new Log();
if (data.hasOwnProperty('id')) {
obj['id'] = ApiClient.convertToType(data['id'], 'String');
}
if (data.hasOwnProperty('traceId')) {
obj['traceId'] = ApiClient.convertToType(data['traceId'], 'String');
}
if (data.hasOwnProperty('startTime')) {
obj['startTime'] = ApiClient.convertToType(data['startTime'], 'Number');
}
if (data.hasOwnProperty('endTime')) {
obj['endTime'] = ApiClient.convertToType(data['endTime'], 'Number');
}
if (data.hasOwnProperty('payload')) {
obj['payload'] = ApiClient.convertToType(data['payload'], Object);
}
if (data.hasOwnProperty('headers')) {
obj['headers'] = ApiClient.convertToType(data['headers'], Object);
}
if (data.hasOwnProperty('cookies')) {
obj['cookies'] = ApiClient.convertToType(data['cookies'], 'String');
}
if (data.hasOwnProperty('url')) {
obj['url'] = ApiClient.convertToType(data['url'], 'String');
}
if (data.hasOwnProperty('response')) {
obj['response'] = ApiClient.convertToType(data['response'], Object);
}
if (data.hasOwnProperty('content')) {
obj['content'] = ApiClient.convertToType(data['content'], [LogContentInner]);
}
if (data.hasOwnProperty('project')) {
obj['project'] = Project.constructFromObject(data['project']);
}
if (data.hasOwnProperty('query')) {
obj['query'] = Query.constructFromObject(data['query']);
}
}
return obj;
}
/**
* Validates the JSON data with respect to <code>Log</code>.
* @param {Object} data The plain JavaScript object bearing properties of interest.
* @return {boolean} to indicate whether the JSON data is valid with respect to <code>Log</code>.
*/
static validateJSON(data) {
// ensure the json data is a string
if (data['id'] && !(typeof data['id'] === 'string' || data['id'] instanceof String)) {
throw new Error("Expected the field `id` to be a primitive type in the JSON string but got " + data['id']);
}
// ensure the json data is a string
if (data['traceId'] && !(typeof data['traceId'] === 'string' || data['traceId'] instanceof String)) {
throw new Error("Expected the field `traceId` to be a primitive type in the JSON string but got " + data['traceId']);
}
// ensure the json data is a string
if (data['cookies'] && !(typeof data['cookies'] === 'string' || data['cookies'] instanceof String)) {
throw new Error("Expected the field `cookies` to be a primitive type in the JSON string but got " + data['cookies']);
}
// ensure the json data is a string
if (data['url'] && !(typeof data['url'] === 'string' || data['url'] instanceof String)) {
throw new Error("Expected the field `url` to be a primitive type in the JSON string but got " + data['url']);
}
if (data['content']) { // data not null
// ensure the json data is an array
if (!Array.isArray(data['content'])) {
throw new Error("Expected the field `content` to be an array in the JSON data but got " + data['content']);
}
// validate the optional field `content` (array)
for (const item of data['content']) {
LogContentInner.validateJSON(item);
};
}
// validate the optional field `project`
if (data['project']) { // data not null
Project.validateJSON(data['project']);
}
// validate the optional field `query`
if (data['query']) { // data not null
Query.validateJSON(data['query']);
}
return true;
}
}
/**
* Unique log identifier
* @member {String} id
*/
Log.prototype['id'] = undefined;
/**
* Trace ID for tracking requests
* @member {String} traceId
*/
Log.prototype['traceId'] = undefined;
/**
* Request start timestamp
* @member {Number} startTime
*/
Log.prototype['startTime'] = undefined;
/**
* Request end timestamp
* @member {Number} endTime
*/
Log.prototype['endTime'] = undefined;
/**
* Request payload
* @member {Object} payload
*/
Log.prototype['payload'] = undefined;
/**
* Request headers
* @member {Object} headers
*/
Log.prototype['headers'] = undefined;
/**
* Request cookies
* @member {String} cookies
*/
Log.prototype['cookies'] = undefined;
/**
* Request URL
* @member {String} url
*/
Log.prototype['url'] = undefined;
/**
* Response data
* @member {Object} response
*/
Log.prototype['response'] = undefined;
/**
* @member {Array.<module:model/LogContentInner>} content
*/
Log.prototype['content'] = undefined;
/**
* @member {module:model/Project} project
*/
Log.prototype['project'] = undefined;
/**
* @member {module:model/Query} query
*/
Log.prototype['query'] = undefined;
export default Log;

View File

@ -1,110 +0,0 @@
/**
* Low-Code Engine API
* API documentation for the Low-Code Engine platform that provides query execution, database management, and project administration capabilities.
*
* The version of the OpenAPI document: 1.0.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*
*/
import ApiClient from '../ApiClient';
/**
* The LogContentInner model module.
* @module model/LogContentInner
* @version 1.0.0
*/
class LogContentInner {
/**
* Constructs a new <code>LogContentInner</code>.
* @alias module:model/LogContentInner
*/
constructor() {
LogContentInner.initialize(this);
}
/**
* Initializes the fields of this object.
* This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
* Only for internal use.
*/
static initialize(obj) {
}
/**
* Constructs a <code>LogContentInner</code> from a plain JavaScript object, optionally creating a new instance.
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
* @param {Object} data The plain JavaScript object bearing properties of interest.
* @param {module:model/LogContentInner} obj Optional instance to populate.
* @return {module:model/LogContentInner} The populated <code>LogContentInner</code> instance.
*/
static constructFromObject(data, obj) {
if (data) {
obj = obj || new LogContentInner();
if (data.hasOwnProperty('content')) {
obj['content'] = ApiClient.convertToType(data['content'], 'String');
}
if (data.hasOwnProperty('type')) {
obj['type'] = ApiClient.convertToType(data['type'], 'String');
}
if (data.hasOwnProperty('timeStamp')) {
obj['timeStamp'] = ApiClient.convertToType(data['timeStamp'], 'Number');
}
}
return obj;
}
/**
* Validates the JSON data with respect to <code>LogContentInner</code>.
* @param {Object} data The plain JavaScript object bearing properties of interest.
* @return {boolean} to indicate whether the JSON data is valid with respect to <code>LogContentInner</code>.
*/
static validateJSON(data) {
// ensure the json data is a string
if (data['content'] && !(typeof data['content'] === 'string' || data['content'] instanceof String)) {
throw new Error("Expected the field `content` to be a primitive type in the JSON string but got " + data['content']);
}
// ensure the json data is a string
if (data['type'] && !(typeof data['type'] === 'string' || data['type'] instanceof String)) {
throw new Error("Expected the field `type` to be a primitive type in the JSON string but got " + data['type']);
}
return true;
}
}
/**
* Log content
* @member {String} content
*/
LogContentInner.prototype['content'] = undefined;
/**
* Log type (info, error, warning)
* @member {String} type
*/
LogContentInner.prototype['type'] = undefined;
/**
* Log entry timestamp
* @member {Number} timeStamp
*/
LogContentInner.prototype['timeStamp'] = undefined;
export default LogContentInner;

View File

@ -1,147 +0,0 @@
/**
* Low-Code Engine API
* API documentation for the Low-Code Engine platform that provides query execution, database management, and project administration capabilities.
*
* The version of the OpenAPI document: 1.0.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*
*/
import ApiClient from '../ApiClient';
/**
* The LoggerIdFindAllPostRequest model module.
* @module model/LoggerIdFindAllPostRequest
* @version 1.0.0
*/
class LoggerIdFindAllPostRequest {
/**
* Constructs a new <code>LoggerIdFindAllPostRequest</code>.
* @alias module:model/LoggerIdFindAllPostRequest
* @param limit {Number} Number of results to return
* @param offset {Number} Number of results to skip
*/
constructor(limit, offset) {
LoggerIdFindAllPostRequest.initialize(this, limit, offset);
}
/**
* Initializes the fields of this object.
* This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
* Only for internal use.
*/
static initialize(obj, limit, offset) {
obj['limit'] = limit;
obj['offset'] = offset;
}
/**
* Constructs a <code>LoggerIdFindAllPostRequest</code> from a plain JavaScript object, optionally creating a new instance.
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
* @param {Object} data The plain JavaScript object bearing properties of interest.
* @param {module:model/LoggerIdFindAllPostRequest} obj Optional instance to populate.
* @return {module:model/LoggerIdFindAllPostRequest} The populated <code>LoggerIdFindAllPostRequest</code> instance.
*/
static constructFromObject(data, obj) {
if (data) {
obj = obj || new LoggerIdFindAllPostRequest();
if (data.hasOwnProperty('traceId')) {
obj['traceId'] = ApiClient.convertToType(data['traceId'], 'String');
}
if (data.hasOwnProperty('fromDate')) {
obj['fromDate'] = ApiClient.convertToType(data['fromDate'], 'Date');
}
if (data.hasOwnProperty('toDate')) {
obj['toDate'] = ApiClient.convertToType(data['toDate'], 'Date');
}
if (data.hasOwnProperty('url')) {
obj['url'] = ApiClient.convertToType(data['url'], 'String');
}
if (data.hasOwnProperty('limit')) {
obj['limit'] = ApiClient.convertToType(data['limit'], 'Number');
}
if (data.hasOwnProperty('offset')) {
obj['offset'] = ApiClient.convertToType(data['offset'], 'Number');
}
}
return obj;
}
/**
* Validates the JSON data with respect to <code>LoggerIdFindAllPostRequest</code>.
* @param {Object} data The plain JavaScript object bearing properties of interest.
* @return {boolean} to indicate whether the JSON data is valid with respect to <code>LoggerIdFindAllPostRequest</code>.
*/
static validateJSON(data) {
// check to make sure all required properties are present in the JSON string
for (const property of LoggerIdFindAllPostRequest.RequiredProperties) {
if (!data.hasOwnProperty(property)) {
throw new Error("The required field `" + property + "` is not found in the JSON data: " + JSON.stringify(data));
}
}
// ensure the json data is a string
if (data['traceId'] && !(typeof data['traceId'] === 'string' || data['traceId'] instanceof String)) {
throw new Error("Expected the field `traceId` to be a primitive type in the JSON string but got " + data['traceId']);
}
// ensure the json data is a string
if (data['url'] && !(typeof data['url'] === 'string' || data['url'] instanceof String)) {
throw new Error("Expected the field `url` to be a primitive type in the JSON string but got " + data['url']);
}
return true;
}
}
LoggerIdFindAllPostRequest.RequiredProperties = ["limit", "offset"];
/**
* Filter by trace ID
* @member {String} traceId
*/
LoggerIdFindAllPostRequest.prototype['traceId'] = undefined;
/**
* Filter from date
* @member {Date} fromDate
*/
LoggerIdFindAllPostRequest.prototype['fromDate'] = undefined;
/**
* Filter to date
* @member {Date} toDate
*/
LoggerIdFindAllPostRequest.prototype['toDate'] = undefined;
/**
* Filter by URL
* @member {String} url
*/
LoggerIdFindAllPostRequest.prototype['url'] = undefined;
/**
* Number of results to return
* @member {Number} limit
*/
LoggerIdFindAllPostRequest.prototype['limit'] = undefined;
/**
* Number of results to skip
* @member {Number} offset
*/
LoggerIdFindAllPostRequest.prototype['offset'] = undefined;
export default LoggerIdFindAllPostRequest;

View File

@ -1,127 +0,0 @@
/**
* Low-Code Engine API
* API documentation for the Low-Code Engine platform that provides query execution, database management, and project administration capabilities.
*
* The version of the OpenAPI document: 1.0.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*
*/
import ApiClient from '../ApiClient';
import Database from './Database';
/**
* The Migration model module.
* @module model/Migration
* @version 1.0.0
*/
class Migration {
/**
* Constructs a new <code>Migration</code>.
* @alias module:model/Migration
*/
constructor() {
Migration.initialize(this);
}
/**
* Initializes the fields of this object.
* This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
* Only for internal use.
*/
static initialize(obj) {
}
/**
* Constructs a <code>Migration</code> from a plain JavaScript object, optionally creating a new instance.
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
* @param {Object} data The plain JavaScript object bearing properties of interest.
* @param {module:model/Migration} obj Optional instance to populate.
* @return {module:model/Migration} The populated <code>Migration</code> instance.
*/
static constructFromObject(data, obj) {
if (data) {
obj = obj || new Migration();
if (data.hasOwnProperty('id')) {
obj['id'] = ApiClient.convertToType(data['id'], 'String');
}
if (data.hasOwnProperty('up')) {
obj['up'] = ApiClient.convertToType(data['up'], 'String');
}
if (data.hasOwnProperty('down')) {
obj['down'] = ApiClient.convertToType(data['down'], 'String');
}
if (data.hasOwnProperty('database')) {
obj['database'] = Database.constructFromObject(data['database']);
}
}
return obj;
}
/**
* Validates the JSON data with respect to <code>Migration</code>.
* @param {Object} data The plain JavaScript object bearing properties of interest.
* @return {boolean} to indicate whether the JSON data is valid with respect to <code>Migration</code>.
*/
static validateJSON(data) {
// ensure the json data is a string
if (data['id'] && !(typeof data['id'] === 'string' || data['id'] instanceof String)) {
throw new Error("Expected the field `id` to be a primitive type in the JSON string but got " + data['id']);
}
// ensure the json data is a string
if (data['up'] && !(typeof data['up'] === 'string' || data['up'] instanceof String)) {
throw new Error("Expected the field `up` to be a primitive type in the JSON string but got " + data['up']);
}
// ensure the json data is a string
if (data['down'] && !(typeof data['down'] === 'string' || data['down'] instanceof String)) {
throw new Error("Expected the field `down` to be a primitive type in the JSON string but got " + data['down']);
}
// validate the optional field `database`
if (data['database']) { // data not null
Database.validateJSON(data['database']);
}
return true;
}
}
/**
* Unique migration identifier
* @member {String} id
*/
Migration.prototype['id'] = undefined;
/**
* Migration up SQL
* @member {String} up
*/
Migration.prototype['up'] = undefined;
/**
* Migration down SQL
* @member {String} down
*/
Migration.prototype['down'] = undefined;
/**
* @member {module:model/Database} database
*/
Migration.prototype['database'] = undefined;
export default Migration;

View File

@ -1,190 +0,0 @@
/**
* Low-Code Engine API
* API documentation for the Low-Code Engine platform that provides query execution, database management, and project administration capabilities.
*
* The version of the OpenAPI document: 1.0.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*
*/
import ApiClient from '../ApiClient';
import Database from './Database';
import Function from './Function';
import ProjectSetting from './ProjectSetting';
import Query from './Query';
import Token from './Token';
/**
* The Project model module.
* @module model/Project
* @version 1.0.0
*/
class Project {
/**
* Constructs a new <code>Project</code>.
* @alias module:model/Project
*/
constructor() {
Project.initialize(this);
}
/**
* Initializes the fields of this object.
* This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
* Only for internal use.
*/
static initialize(obj) {
}
/**
* Constructs a <code>Project</code> from a plain JavaScript object, optionally creating a new instance.
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
* @param {Object} data The plain JavaScript object bearing properties of interest.
* @param {module:model/Project} obj Optional instance to populate.
* @return {module:model/Project} The populated <code>Project</code> instance.
*/
static constructFromObject(data, obj) {
if (data) {
obj = obj || new Project();
if (data.hasOwnProperty('id')) {
obj['id'] = ApiClient.convertToType(data['id'], 'String');
}
if (data.hasOwnProperty('name')) {
obj['name'] = ApiClient.convertToType(data['name'], 'String');
}
if (data.hasOwnProperty('apiTokens')) {
obj['apiTokens'] = ApiClient.convertToType(data['apiTokens'], [Token]);
}
if (data.hasOwnProperty('database')) {
obj['database'] = Database.constructFromObject(data['database']);
}
if (data.hasOwnProperty('queries')) {
obj['queries'] = ApiClient.convertToType(data['queries'], [Query]);
}
if (data.hasOwnProperty('functions')) {
obj['functions'] = ApiClient.convertToType(data['functions'], [Function]);
}
if (data.hasOwnProperty('settings')) {
obj['settings'] = ApiClient.convertToType(data['settings'], [ProjectSetting]);
}
}
return obj;
}
/**
* Validates the JSON data with respect to <code>Project</code>.
* @param {Object} data The plain JavaScript object bearing properties of interest.
* @return {boolean} to indicate whether the JSON data is valid with respect to <code>Project</code>.
*/
static validateJSON(data) {
// ensure the json data is a string
if (data['id'] && !(typeof data['id'] === 'string' || data['id'] instanceof String)) {
throw new Error("Expected the field `id` to be a primitive type in the JSON string but got " + data['id']);
}
// ensure the json data is a string
if (data['name'] && !(typeof data['name'] === 'string' || data['name'] instanceof String)) {
throw new Error("Expected the field `name` to be a primitive type in the JSON string but got " + data['name']);
}
if (data['apiTokens']) { // data not null
// ensure the json data is an array
if (!Array.isArray(data['apiTokens'])) {
throw new Error("Expected the field `apiTokens` to be an array in the JSON data but got " + data['apiTokens']);
}
// validate the optional field `apiTokens` (array)
for (const item of data['apiTokens']) {
Token.validateJSON(item);
};
}
// validate the optional field `database`
if (data['database']) { // data not null
Database.validateJSON(data['database']);
}
if (data['queries']) { // data not null
// ensure the json data is an array
if (!Array.isArray(data['queries'])) {
throw new Error("Expected the field `queries` to be an array in the JSON data but got " + data['queries']);
}
// validate the optional field `queries` (array)
for (const item of data['queries']) {
Query.validateJSON(item);
};
}
if (data['functions']) { // data not null
// ensure the json data is an array
if (!Array.isArray(data['functions'])) {
throw new Error("Expected the field `functions` to be an array in the JSON data but got " + data['functions']);
}
// validate the optional field `functions` (array)
for (const item of data['functions']) {
Function.validateJSON(item);
};
}
if (data['settings']) { // data not null
// ensure the json data is an array
if (!Array.isArray(data['settings'])) {
throw new Error("Expected the field `settings` to be an array in the JSON data but got " + data['settings']);
}
// validate the optional field `settings` (array)
for (const item of data['settings']) {
ProjectSetting.validateJSON(item);
};
}
return true;
}
}
/**
* Unique project identifier
* @member {String} id
*/
Project.prototype['id'] = undefined;
/**
* Project name
* @member {String} name
*/
Project.prototype['name'] = undefined;
/**
* @member {Array.<module:model/Token>} apiTokens
*/
Project.prototype['apiTokens'] = undefined;
/**
* @member {module:model/Database} database
*/
Project.prototype['database'] = undefined;
/**
* @member {Array.<module:model/Query>} queries
*/
Project.prototype['queries'] = undefined;
/**
* @member {Array.<module:model/Function>} functions
*/
Project.prototype['functions'] = undefined;
/**
* @member {Array.<module:model/ProjectSetting>} settings
*/
Project.prototype['settings'] = undefined;
export default Project;

View File

@ -1,96 +0,0 @@
/**
* Low-Code Engine API
* API documentation for the Low-Code Engine platform that provides query execution, database management, and project administration capabilities.
*
* The version of the OpenAPI document: 1.0.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*
*/
import ApiClient from '../ApiClient';
/**
* The ProjectCreatePutRequest model module.
* @module model/ProjectCreatePutRequest
* @version 1.0.0
*/
class ProjectCreatePutRequest {
/**
* Constructs a new <code>ProjectCreatePutRequest</code>.
* @alias module:model/ProjectCreatePutRequest
* @param name {String} Project name
*/
constructor(name) {
ProjectCreatePutRequest.initialize(this, name);
}
/**
* Initializes the fields of this object.
* This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
* Only for internal use.
*/
static initialize(obj, name) {
obj['name'] = name;
}
/**
* Constructs a <code>ProjectCreatePutRequest</code> from a plain JavaScript object, optionally creating a new instance.
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
* @param {Object} data The plain JavaScript object bearing properties of interest.
* @param {module:model/ProjectCreatePutRequest} obj Optional instance to populate.
* @return {module:model/ProjectCreatePutRequest} The populated <code>ProjectCreatePutRequest</code> instance.
*/
static constructFromObject(data, obj) {
if (data) {
obj = obj || new ProjectCreatePutRequest();
if (data.hasOwnProperty('name')) {
obj['name'] = ApiClient.convertToType(data['name'], 'String');
}
}
return obj;
}
/**
* Validates the JSON data with respect to <code>ProjectCreatePutRequest</code>.
* @param {Object} data The plain JavaScript object bearing properties of interest.
* @return {boolean} to indicate whether the JSON data is valid with respect to <code>ProjectCreatePutRequest</code>.
*/
static validateJSON(data) {
// check to make sure all required properties are present in the JSON string
for (const property of ProjectCreatePutRequest.RequiredProperties) {
if (!data.hasOwnProperty(property)) {
throw new Error("The required field `" + property + "` is not found in the JSON data: " + JSON.stringify(data));
}
}
// ensure the json data is a string
if (data['name'] && !(typeof data['name'] === 'string' || data['name'] instanceof String)) {
throw new Error("Expected the field `name` to be a primitive type in the JSON string but got " + data['name']);
}
return true;
}
}
ProjectCreatePutRequest.RequiredProperties = ["name"];
/**
* Project name
* @member {String} name
*/
ProjectCreatePutRequest.prototype['name'] = undefined;
export default ProjectCreatePutRequest;

View File

@ -1,127 +0,0 @@
/**
* Low-Code Engine API
* API documentation for the Low-Code Engine platform that provides query execution, database management, and project administration capabilities.
*
* The version of the OpenAPI document: 1.0.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*
*/
import ApiClient from '../ApiClient';
import Project from './Project';
/**
* The ProjectSetting model module.
* @module model/ProjectSetting
* @version 1.0.0
*/
class ProjectSetting {
/**
* Constructs a new <code>ProjectSetting</code>.
* @alias module:model/ProjectSetting
*/
constructor() {
ProjectSetting.initialize(this);
}
/**
* Initializes the fields of this object.
* This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
* Only for internal use.
*/
static initialize(obj) {
}
/**
* Constructs a <code>ProjectSetting</code> from a plain JavaScript object, optionally creating a new instance.
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
* @param {Object} data The plain JavaScript object bearing properties of interest.
* @param {module:model/ProjectSetting} obj Optional instance to populate.
* @return {module:model/ProjectSetting} The populated <code>ProjectSetting</code> instance.
*/
static constructFromObject(data, obj) {
if (data) {
obj = obj || new ProjectSetting();
if (data.hasOwnProperty('id')) {
obj['id'] = ApiClient.convertToType(data['id'], 'String');
}
if (data.hasOwnProperty('key')) {
obj['key'] = ApiClient.convertToType(data['key'], 'String');
}
if (data.hasOwnProperty('value')) {
obj['value'] = ApiClient.convertToType(data['value'], 'String');
}
if (data.hasOwnProperty('project')) {
obj['project'] = Project.constructFromObject(data['project']);
}
}
return obj;
}
/**
* Validates the JSON data with respect to <code>ProjectSetting</code>.
* @param {Object} data The plain JavaScript object bearing properties of interest.
* @return {boolean} to indicate whether the JSON data is valid with respect to <code>ProjectSetting</code>.
*/
static validateJSON(data) {
// ensure the json data is a string
if (data['id'] && !(typeof data['id'] === 'string' || data['id'] instanceof String)) {
throw new Error("Expected the field `id` to be a primitive type in the JSON string but got " + data['id']);
}
// ensure the json data is a string
if (data['key'] && !(typeof data['key'] === 'string' || data['key'] instanceof String)) {
throw new Error("Expected the field `key` to be a primitive type in the JSON string but got " + data['key']);
}
// ensure the json data is a string
if (data['value'] && !(typeof data['value'] === 'string' || data['value'] instanceof String)) {
throw new Error("Expected the field `value` to be a primitive type in the JSON string but got " + data['value']);
}
// validate the optional field `project`
if (data['project']) { // data not null
Project.validateJSON(data['project']);
}
return true;
}
}
/**
* Unique setting identifier
* @member {String} id
*/
ProjectSetting.prototype['id'] = undefined;
/**
* Setting key
* @member {String} key
*/
ProjectSetting.prototype['key'] = undefined;
/**
* Setting value
* @member {String} value
*/
ProjectSetting.prototype['value'] = undefined;
/**
* @member {module:model/Project} project
*/
ProjectSetting.prototype['project'] = undefined;
export default ProjectSetting;

View File

@ -1,111 +0,0 @@
/**
* Low-Code Engine API
* API documentation for the Low-Code Engine platform that provides query execution, database management, and project administration capabilities.
*
* The version of the OpenAPI document: 1.0.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*
*/
import ApiClient from '../ApiClient';
/**
* The ProjectSettingsCreatePutRequest model module.
* @module model/ProjectSettingsCreatePutRequest
* @version 1.0.0
*/
class ProjectSettingsCreatePutRequest {
/**
* Constructs a new <code>ProjectSettingsCreatePutRequest</code>.
* @alias module:model/ProjectSettingsCreatePutRequest
* @param key {String} Setting key
* @param value {String} Setting value
*/
constructor(key, value) {
ProjectSettingsCreatePutRequest.initialize(this, key, value);
}
/**
* Initializes the fields of this object.
* This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
* Only for internal use.
*/
static initialize(obj, key, value) {
obj['key'] = key;
obj['value'] = value;
}
/**
* Constructs a <code>ProjectSettingsCreatePutRequest</code> from a plain JavaScript object, optionally creating a new instance.
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
* @param {Object} data The plain JavaScript object bearing properties of interest.
* @param {module:model/ProjectSettingsCreatePutRequest} obj Optional instance to populate.
* @return {module:model/ProjectSettingsCreatePutRequest} The populated <code>ProjectSettingsCreatePutRequest</code> instance.
*/
static constructFromObject(data, obj) {
if (data) {
obj = obj || new ProjectSettingsCreatePutRequest();
if (data.hasOwnProperty('key')) {
obj['key'] = ApiClient.convertToType(data['key'], 'String');
}
if (data.hasOwnProperty('value')) {
obj['value'] = ApiClient.convertToType(data['value'], 'String');
}
}
return obj;
}
/**
* Validates the JSON data with respect to <code>ProjectSettingsCreatePutRequest</code>.
* @param {Object} data The plain JavaScript object bearing properties of interest.
* @return {boolean} to indicate whether the JSON data is valid with respect to <code>ProjectSettingsCreatePutRequest</code>.
*/
static validateJSON(data) {
// check to make sure all required properties are present in the JSON string
for (const property of ProjectSettingsCreatePutRequest.RequiredProperties) {
if (!data.hasOwnProperty(property)) {
throw new Error("The required field `" + property + "` is not found in the JSON data: " + JSON.stringify(data));
}
}
// ensure the json data is a string
if (data['key'] && !(typeof data['key'] === 'string' || data['key'] instanceof String)) {
throw new Error("Expected the field `key` to be a primitive type in the JSON string but got " + data['key']);
}
// ensure the json data is a string
if (data['value'] && !(typeof data['value'] === 'string' || data['value'] instanceof String)) {
throw new Error("Expected the field `value` to be a primitive type in the JSON string but got " + data['value']);
}
return true;
}
}
ProjectSettingsCreatePutRequest.RequiredProperties = ["key", "value"];
/**
* Setting key
* @member {String} key
*/
ProjectSettingsCreatePutRequest.prototype['key'] = undefined;
/**
* Setting value
* @member {String} value
*/
ProjectSettingsCreatePutRequest.prototype['value'] = undefined;
export default ProjectSettingsCreatePutRequest;

View File

@ -1,151 +0,0 @@
/**
* Low-Code Engine API
* API documentation for the Low-Code Engine platform that provides query execution, database management, and project administration capabilities.
*
* The version of the OpenAPI document: 1.0.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*
*/
import ApiClient from '../ApiClient';
import Log from './Log';
import Project from './Project';
/**
* The Query model module.
* @module model/Query
* @version 1.0.0
*/
class Query {
/**
* Constructs a new <code>Query</code>.
* @alias module:model/Query
*/
constructor() {
Query.initialize(this);
}
/**
* Initializes the fields of this object.
* This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
* Only for internal use.
*/
static initialize(obj) {
}
/**
* Constructs a <code>Query</code> from a plain JavaScript object, optionally creating a new instance.
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
* @param {Object} data The plain JavaScript object bearing properties of interest.
* @param {module:model/Query} obj Optional instance to populate.
* @return {module:model/Query} The populated <code>Query</code> instance.
*/
static constructFromObject(data, obj) {
if (data) {
obj = obj || new Query();
if (data.hasOwnProperty('id')) {
obj['id'] = ApiClient.convertToType(data['id'], 'String');
}
if (data.hasOwnProperty('source')) {
obj['source'] = ApiClient.convertToType(data['source'], 'String');
}
if (data.hasOwnProperty('isActive')) {
obj['isActive'] = ApiClient.convertToType(data['isActive'], 'Number');
}
if (data.hasOwnProperty('isCommand')) {
obj['isCommand'] = ApiClient.convertToType(data['isCommand'], 'Number');
}
if (data.hasOwnProperty('project')) {
obj['project'] = Project.constructFromObject(data['project']);
}
if (data.hasOwnProperty('logs')) {
obj['logs'] = ApiClient.convertToType(data['logs'], [Log]);
}
}
return obj;
}
/**
* Validates the JSON data with respect to <code>Query</code>.
* @param {Object} data The plain JavaScript object bearing properties of interest.
* @return {boolean} to indicate whether the JSON data is valid with respect to <code>Query</code>.
*/
static validateJSON(data) {
// ensure the json data is a string
if (data['id'] && !(typeof data['id'] === 'string' || data['id'] instanceof String)) {
throw new Error("Expected the field `id` to be a primitive type in the JSON string but got " + data['id']);
}
// ensure the json data is a string
if (data['source'] && !(typeof data['source'] === 'string' || data['source'] instanceof String)) {
throw new Error("Expected the field `source` to be a primitive type in the JSON string but got " + data['source']);
}
// validate the optional field `project`
if (data['project']) { // data not null
Project.validateJSON(data['project']);
}
if (data['logs']) { // data not null
// ensure the json data is an array
if (!Array.isArray(data['logs'])) {
throw new Error("Expected the field `logs` to be an array in the JSON data but got " + data['logs']);
}
// validate the optional field `logs` (array)
for (const item of data['logs']) {
Log.validateJSON(item);
};
}
return true;
}
}
/**
* Unique query identifier
* @member {String} id
*/
Query.prototype['id'] = undefined;
/**
* Query source code
* @member {String} source
*/
Query.prototype['source'] = undefined;
/**
* Whether the query is active (1 = active, 0 = inactive)
* @member {Number} isActive
*/
Query.prototype['isActive'] = undefined;
/**
* Whether this is a command (1 = command, 0 = query)
* @member {Number} isCommand
*/
Query.prototype['isCommand'] = undefined;
/**
* @member {module:model/Project} project
*/
Query.prototype['project'] = undefined;
/**
* @member {Array.<module:model/Log>} logs
*/
Query.prototype['logs'] = undefined;
export default Query;

View File

@ -1,96 +0,0 @@
/**
* Low-Code Engine API
* API documentation for the Low-Code Engine platform that provides query execution, database management, and project administration capabilities.
*
* The version of the OpenAPI document: 1.0.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*
*/
import ApiClient from '../ApiClient';
/**
* The QueryCreatePostRequest model module.
* @module model/QueryCreatePostRequest
* @version 1.0.0
*/
class QueryCreatePostRequest {
/**
* Constructs a new <code>QueryCreatePostRequest</code>.
* @alias module:model/QueryCreatePostRequest
* @param source {String} Query source code
*/
constructor(source) {
QueryCreatePostRequest.initialize(this, source);
}
/**
* Initializes the fields of this object.
* This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
* Only for internal use.
*/
static initialize(obj, source) {
obj['source'] = source;
}
/**
* Constructs a <code>QueryCreatePostRequest</code> from a plain JavaScript object, optionally creating a new instance.
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
* @param {Object} data The plain JavaScript object bearing properties of interest.
* @param {module:model/QueryCreatePostRequest} obj Optional instance to populate.
* @return {module:model/QueryCreatePostRequest} The populated <code>QueryCreatePostRequest</code> instance.
*/
static constructFromObject(data, obj) {
if (data) {
obj = obj || new QueryCreatePostRequest();
if (data.hasOwnProperty('source')) {
obj['source'] = ApiClient.convertToType(data['source'], 'String');
}
}
return obj;
}
/**
* Validates the JSON data with respect to <code>QueryCreatePostRequest</code>.
* @param {Object} data The plain JavaScript object bearing properties of interest.
* @return {boolean} to indicate whether the JSON data is valid with respect to <code>QueryCreatePostRequest</code>.
*/
static validateJSON(data) {
// check to make sure all required properties are present in the JSON string
for (const property of QueryCreatePostRequest.RequiredProperties) {
if (!data.hasOwnProperty(property)) {
throw new Error("The required field `" + property + "` is not found in the JSON data: " + JSON.stringify(data));
}
}
// ensure the json data is a string
if (data['source'] && !(typeof data['source'] === 'string' || data['source'] instanceof String)) {
throw new Error("Expected the field `source` to be a primitive type in the JSON string but got " + data['source']);
}
return true;
}
}
QueryCreatePostRequest.RequiredProperties = ["source"];
/**
* Query source code
* @member {String} source
*/
QueryCreatePostRequest.prototype['source'] = undefined;
export default QueryCreatePostRequest;

View File

@ -1,88 +0,0 @@
/**
* Low-Code Engine API
* API documentation for the Low-Code Engine platform that provides query execution, database management, and project administration capabilities.
*
* The version of the OpenAPI document: 1.0.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*
*/
import ApiClient from '../ApiClient';
/**
* The QueryUpdateIdPostRequest model module.
* @module model/QueryUpdateIdPostRequest
* @version 1.0.0
*/
class QueryUpdateIdPostRequest {
/**
* Constructs a new <code>QueryUpdateIdPostRequest</code>.
* @alias module:model/QueryUpdateIdPostRequest
*/
constructor() {
QueryUpdateIdPostRequest.initialize(this);
}
/**
* Initializes the fields of this object.
* This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
* Only for internal use.
*/
static initialize(obj) {
}
/**
* Constructs a <code>QueryUpdateIdPostRequest</code> from a plain JavaScript object, optionally creating a new instance.
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
* @param {Object} data The plain JavaScript object bearing properties of interest.
* @param {module:model/QueryUpdateIdPostRequest} obj Optional instance to populate.
* @return {module:model/QueryUpdateIdPostRequest} The populated <code>QueryUpdateIdPostRequest</code> instance.
*/
static constructFromObject(data, obj) {
if (data) {
obj = obj || new QueryUpdateIdPostRequest();
if (data.hasOwnProperty('source')) {
obj['source'] = ApiClient.convertToType(data['source'], 'String');
}
}
return obj;
}
/**
* Validates the JSON data with respect to <code>QueryUpdateIdPostRequest</code>.
* @param {Object} data The plain JavaScript object bearing properties of interest.
* @return {boolean} to indicate whether the JSON data is valid with respect to <code>QueryUpdateIdPostRequest</code>.
*/
static validateJSON(data) {
// ensure the json data is a string
if (data['source'] && !(typeof data['source'] === 'string' || data['source'] instanceof String)) {
throw new Error("Expected the field `source` to be a primitive type in the JSON string but got " + data['source']);
}
return true;
}
}
/**
* Updated query source code
* @member {String} source
*/
QueryUpdateIdPostRequest.prototype['source'] = undefined;
export default QueryUpdateIdPostRequest;

View File

@ -1,155 +0,0 @@
/**
* Low-Code Engine API
* API documentation for the Low-Code Engine platform that provides query execution, database management, and project administration capabilities.
*
* The version of the OpenAPI document: 1.0.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*
*/
import ApiClient from '../ApiClient';
import Project from './Project';
/**
* The RedisNode model module.
* @module model/RedisNode
* @version 1.0.0
*/
class RedisNode {
/**
* Constructs a new <code>RedisNode</code>.
* @alias module:model/RedisNode
*/
constructor() {
RedisNode.initialize(this);
}
/**
* Initializes the fields of this object.
* This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
* Only for internal use.
*/
static initialize(obj) {
}
/**
* Constructs a <code>RedisNode</code> from a plain JavaScript object, optionally creating a new instance.
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
* @param {Object} data The plain JavaScript object bearing properties of interest.
* @param {module:model/RedisNode} obj Optional instance to populate.
* @return {module:model/RedisNode} The populated <code>RedisNode</code> instance.
*/
static constructFromObject(data, obj) {
if (data) {
obj = obj || new RedisNode();
if (data.hasOwnProperty('id')) {
obj['id'] = ApiClient.convertToType(data['id'], 'String');
}
if (data.hasOwnProperty('host')) {
obj['host'] = ApiClient.convertToType(data['host'], 'String');
}
if (data.hasOwnProperty('port')) {
obj['port'] = ApiClient.convertToType(data['port'], 'Number');
}
if (data.hasOwnProperty('user')) {
obj['user'] = ApiClient.convertToType(data['user'], 'String');
}
if (data.hasOwnProperty('password')) {
obj['password'] = ApiClient.convertToType(data['password'], 'String');
}
if (data.hasOwnProperty('projects')) {
obj['projects'] = ApiClient.convertToType(data['projects'], [Project]);
}
}
return obj;
}
/**
* Validates the JSON data with respect to <code>RedisNode</code>.
* @param {Object} data The plain JavaScript object bearing properties of interest.
* @return {boolean} to indicate whether the JSON data is valid with respect to <code>RedisNode</code>.
*/
static validateJSON(data) {
// ensure the json data is a string
if (data['id'] && !(typeof data['id'] === 'string' || data['id'] instanceof String)) {
throw new Error("Expected the field `id` to be a primitive type in the JSON string but got " + data['id']);
}
// ensure the json data is a string
if (data['host'] && !(typeof data['host'] === 'string' || data['host'] instanceof String)) {
throw new Error("Expected the field `host` to be a primitive type in the JSON string but got " + data['host']);
}
// ensure the json data is a string
if (data['user'] && !(typeof data['user'] === 'string' || data['user'] instanceof String)) {
throw new Error("Expected the field `user` to be a primitive type in the JSON string but got " + data['user']);
}
// ensure the json data is a string
if (data['password'] && !(typeof data['password'] === 'string' || data['password'] instanceof String)) {
throw new Error("Expected the field `password` to be a primitive type in the JSON string but got " + data['password']);
}
if (data['projects']) { // data not null
// ensure the json data is an array
if (!Array.isArray(data['projects'])) {
throw new Error("Expected the field `projects` to be an array in the JSON data but got " + data['projects']);
}
// validate the optional field `projects` (array)
for (const item of data['projects']) {
Project.validateJSON(item);
};
}
return true;
}
}
/**
* Unique Redis node identifier
* @member {String} id
*/
RedisNode.prototype['id'] = undefined;
/**
* Redis host
* @member {String} host
*/
RedisNode.prototype['host'] = undefined;
/**
* Redis port
* @member {Number} port
*/
RedisNode.prototype['port'] = undefined;
/**
* Redis username
* @member {String} user
*/
RedisNode.prototype['user'] = undefined;
/**
* Redis password
* @member {String} password
*/
RedisNode.prototype['password'] = undefined;
/**
* @member {Array.<module:model/Project>} projects
*/
RedisNode.prototype['projects'] = undefined;
export default RedisNode;

View File

@ -1,137 +0,0 @@
/**
* Low-Code Engine API
* API documentation for the Low-Code Engine platform that provides query execution, database management, and project administration capabilities.
*
* The version of the OpenAPI document: 1.0.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*
*/
import ApiClient from '../ApiClient';
/**
* The RedisNodeCreatePostRequest model module.
* @module model/RedisNodeCreatePostRequest
* @version 1.0.0
*/
class RedisNodeCreatePostRequest {
/**
* Constructs a new <code>RedisNodeCreatePostRequest</code>.
* @alias module:model/RedisNodeCreatePostRequest
* @param host {String} Redis host
* @param port {Number} Redis port
* @param user {String} Redis username
* @param password {String} Redis password
*/
constructor(host, port, user, password) {
RedisNodeCreatePostRequest.initialize(this, host, port, user, password);
}
/**
* Initializes the fields of this object.
* This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
* Only for internal use.
*/
static initialize(obj, host, port, user, password) {
obj['host'] = host;
obj['port'] = port;
obj['user'] = user;
obj['password'] = password;
}
/**
* Constructs a <code>RedisNodeCreatePostRequest</code> from a plain JavaScript object, optionally creating a new instance.
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
* @param {Object} data The plain JavaScript object bearing properties of interest.
* @param {module:model/RedisNodeCreatePostRequest} obj Optional instance to populate.
* @return {module:model/RedisNodeCreatePostRequest} The populated <code>RedisNodeCreatePostRequest</code> instance.
*/
static constructFromObject(data, obj) {
if (data) {
obj = obj || new RedisNodeCreatePostRequest();
if (data.hasOwnProperty('host')) {
obj['host'] = ApiClient.convertToType(data['host'], 'String');
}
if (data.hasOwnProperty('port')) {
obj['port'] = ApiClient.convertToType(data['port'], 'Number');
}
if (data.hasOwnProperty('user')) {
obj['user'] = ApiClient.convertToType(data['user'], 'String');
}
if (data.hasOwnProperty('password')) {
obj['password'] = ApiClient.convertToType(data['password'], 'String');
}
}
return obj;
}
/**
* Validates the JSON data with respect to <code>RedisNodeCreatePostRequest</code>.
* @param {Object} data The plain JavaScript object bearing properties of interest.
* @return {boolean} to indicate whether the JSON data is valid with respect to <code>RedisNodeCreatePostRequest</code>.
*/
static validateJSON(data) {
// check to make sure all required properties are present in the JSON string
for (const property of RedisNodeCreatePostRequest.RequiredProperties) {
if (!data.hasOwnProperty(property)) {
throw new Error("The required field `" + property + "` is not found in the JSON data: " + JSON.stringify(data));
}
}
// ensure the json data is a string
if (data['host'] && !(typeof data['host'] === 'string' || data['host'] instanceof String)) {
throw new Error("Expected the field `host` to be a primitive type in the JSON string but got " + data['host']);
}
// ensure the json data is a string
if (data['user'] && !(typeof data['user'] === 'string' || data['user'] instanceof String)) {
throw new Error("Expected the field `user` to be a primitive type in the JSON string but got " + data['user']);
}
// ensure the json data is a string
if (data['password'] && !(typeof data['password'] === 'string' || data['password'] instanceof String)) {
throw new Error("Expected the field `password` to be a primitive type in the JSON string but got " + data['password']);
}
return true;
}
}
RedisNodeCreatePostRequest.RequiredProperties = ["host", "port", "user", "password"];
/**
* Redis host
* @member {String} host
*/
RedisNodeCreatePostRequest.prototype['host'] = undefined;
/**
* Redis port
* @member {Number} port
*/
RedisNodeCreatePostRequest.prototype['port'] = undefined;
/**
* Redis username
* @member {String} user
*/
RedisNodeCreatePostRequest.prototype['user'] = undefined;
/**
* Redis password
* @member {String} password
*/
RedisNodeCreatePostRequest.prototype['password'] = undefined;
export default RedisNodeCreatePostRequest;

View File

@ -1,119 +0,0 @@
/**
* Low-Code Engine API
* API documentation for the Low-Code Engine platform that provides query execution, database management, and project administration capabilities.
*
* The version of the OpenAPI document: 1.0.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*
*/
import ApiClient from '../ApiClient';
import Project from './Project';
/**
* The Token model module.
* @module model/Token
* @version 1.0.0
*/
class Token {
/**
* Constructs a new <code>Token</code>.
* @alias module:model/Token
*/
constructor() {
Token.initialize(this);
}
/**
* Initializes the fields of this object.
* This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
* Only for internal use.
*/
static initialize(obj) {
}
/**
* Constructs a <code>Token</code> from a plain JavaScript object, optionally creating a new instance.
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
* @param {Object} data The plain JavaScript object bearing properties of interest.
* @param {module:model/Token} obj Optional instance to populate.
* @return {module:model/Token} The populated <code>Token</code> instance.
*/
static constructFromObject(data, obj) {
if (data) {
obj = obj || new Token();
if (data.hasOwnProperty('token')) {
obj['token'] = ApiClient.convertToType(data['token'], 'String');
}
if (data.hasOwnProperty('isActive')) {
obj['isActive'] = ApiClient.convertToType(data['isActive'], 'Boolean');
}
if (data.hasOwnProperty('isAdmin')) {
obj['isAdmin'] = ApiClient.convertToType(data['isAdmin'], 'Boolean');
}
if (data.hasOwnProperty('project')) {
obj['project'] = Project.constructFromObject(data['project']);
}
}
return obj;
}
/**
* Validates the JSON data with respect to <code>Token</code>.
* @param {Object} data The plain JavaScript object bearing properties of interest.
* @return {boolean} to indicate whether the JSON data is valid with respect to <code>Token</code>.
*/
static validateJSON(data) {
// ensure the json data is a string
if (data['token'] && !(typeof data['token'] === 'string' || data['token'] instanceof String)) {
throw new Error("Expected the field `token` to be a primitive type in the JSON string but got " + data['token']);
}
// validate the optional field `project`
if (data['project']) { // data not null
Project.validateJSON(data['project']);
}
return true;
}
}
/**
* Unique token identifier
* @member {String} token
*/
Token.prototype['token'] = undefined;
/**
* Whether the token is active
* @member {Boolean} isActive
*/
Token.prototype['isActive'] = undefined;
/**
* Whether the token has admin privileges
* @member {Boolean} isAdmin
*/
Token.prototype['isAdmin'] = undefined;
/**
* @member {module:model/Project} project
*/
Token.prototype['project'] = undefined;
export default Token;

View File

@ -1,73 +0,0 @@
/**
* Low-Code Engine API
* API documentation for the Low-Code Engine platform that provides query execution, database management, and project administration capabilities.
*
* The version of the OpenAPI document: 1.0.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*
*/
(function(root, factory) {
if (typeof define === 'function' && define.amd) {
// AMD.
define(['expect.js', process.cwd()+'/src/index'], factory);
} else if (typeof module === 'object' && module.exports) {
// CommonJS-like environments that support module.exports, like Node.
factory(require('expect.js'), require(process.cwd()+'/src/index'));
} else {
// Browser globals (root is window)
factory(root.expect, root.LowCodeEngineApi);
}
}(this, function(expect, LowCodeEngineApi) {
'use strict';
var instance;
beforeEach(function() {
instance = new LowCodeEngineApi.APITokensApi();
});
var getProperty = function(object, getter, property) {
// Use getter method if present; otherwise, get the property directly.
if (typeof object[getter] === 'function')
return object[getter]();
else
return object[property];
}
var setProperty = function(object, setter, property, value) {
// Use setter method if present; otherwise, set the property directly.
if (typeof object[setter] === 'function')
object[setter](value);
else
object[property] = value;
}
describe('APITokensApi', function() {
describe('apiTokenGeneratePost', function() {
it('should call apiTokenGeneratePost successfully', function(done) {
//uncomment below and update the code to test apiTokenGeneratePost
//instance.apiTokenGeneratePost(function(error) {
// if (error) throw error;
//expect().to.be();
//});
done();
});
});
describe('apiTokenRevokeTokenDelete', function() {
it('should call apiTokenRevokeTokenDelete successfully', function(done) {
//uncomment below and update the code to test apiTokenRevokeTokenDelete
//instance.apiTokenRevokeTokenDelete(function(error) {
// if (error) throw error;
//expect().to.be();
//});
done();
});
});
});
}));

View File

@ -1,93 +0,0 @@
/**
* Low-Code Engine API
* API documentation for the Low-Code Engine platform that provides query execution, database management, and project administration capabilities.
*
* The version of the OpenAPI document: 1.0.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*
*/
(function(root, factory) {
if (typeof define === 'function' && define.amd) {
// AMD.
define(['expect.js', process.cwd()+'/src/index'], factory);
} else if (typeof module === 'object' && module.exports) {
// CommonJS-like environments that support module.exports, like Node.
factory(require('expect.js'), require(process.cwd()+'/src/index'));
} else {
// Browser globals (root is window)
factory(root.expect, root.LowCodeEngineApi);
}
}(this, function(expect, LowCodeEngineApi) {
'use strict';
var instance;
beforeEach(function() {
instance = new LowCodeEngineApi.CommandsApi();
});
var getProperty = function(object, getter, property) {
// Use getter method if present; otherwise, get the property directly.
if (typeof object[getter] === 'function')
return object[getter]();
else
return object[property];
}
var setProperty = function(object, setter, property, value) {
// Use setter method if present; otherwise, set the property directly.
if (typeof object[setter] === 'function')
object[setter](value);
else
object[property] = value;
}
describe('CommandsApi', function() {
describe('commandCreatePost', function() {
it('should call commandCreatePost successfully', function(done) {
//uncomment below and update the code to test commandCreatePost
//instance.commandCreatePost(function(error) {
// if (error) throw error;
//expect().to.be();
//});
done();
});
});
describe('commandDeleteIdDelete', function() {
it('should call commandDeleteIdDelete successfully', function(done) {
//uncomment below and update the code to test commandDeleteIdDelete
//instance.commandDeleteIdDelete(function(error) {
// if (error) throw error;
//expect().to.be();
//});
done();
});
});
describe('commandRunIdPost', function() {
it('should call commandRunIdPost successfully', function(done) {
//uncomment below and update the code to test commandRunIdPost
//instance.commandRunIdPost(function(error) {
// if (error) throw error;
//expect().to.be();
//});
done();
});
});
describe('commandUpdateIdPost', function() {
it('should call commandUpdateIdPost successfully', function(done) {
//uncomment below and update the code to test commandUpdateIdPost
//instance.commandUpdateIdPost(function(error) {
// if (error) throw error;
//expect().to.be();
//});
done();
});
});
});
}));

View File

@ -1,133 +0,0 @@
/**
* Low-Code Engine API
* API documentation for the Low-Code Engine platform that provides query execution, database management, and project administration capabilities.
*
* The version of the OpenAPI document: 1.0.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*
*/
(function(root, factory) {
if (typeof define === 'function' && define.amd) {
// AMD.
define(['expect.js', process.cwd()+'/src/index'], factory);
} else if (typeof module === 'object' && module.exports) {
// CommonJS-like environments that support module.exports, like Node.
factory(require('expect.js'), require(process.cwd()+'/src/index'));
} else {
// Browser globals (root is window)
factory(root.expect, root.LowCodeEngineApi);
}
}(this, function(expect, LowCodeEngineApi) {
'use strict';
var instance;
beforeEach(function() {
instance = new LowCodeEngineApi.DatabaseManagementApi();
});
var getProperty = function(object, getter, property) {
// Use getter method if present; otherwise, get the property directly.
if (typeof object[getter] === 'function')
return object[getter]();
else
return object[property];
}
var setProperty = function(object, setter, property, value) {
// Use setter method if present; otherwise, set the property directly.
if (typeof object[setter] === 'function')
object[setter](value);
else
object[property] = value;
}
describe('DatabaseManagementApi', function() {
describe('databaseColumnsDatabaseIdTableNameGet', function() {
it('should call databaseColumnsDatabaseIdTableNameGet successfully', function(done) {
//uncomment below and update the code to test databaseColumnsDatabaseIdTableNameGet
//instance.databaseColumnsDatabaseIdTableNameGet(function(error) {
// if (error) throw error;
//expect().to.be();
//});
done();
});
});
describe('databaseCreatePost', function() {
it('should call databaseCreatePost successfully', function(done) {
//uncomment below and update the code to test databaseCreatePost
//instance.databaseCreatePost(function(error) {
// if (error) throw error;
//expect().to.be();
//});
done();
});
});
describe('databaseMigrationCreatePost', function() {
it('should call databaseMigrationCreatePost successfully', function(done) {
//uncomment below and update the code to test databaseMigrationCreatePost
//instance.databaseMigrationCreatePost(function(error) {
// if (error) throw error;
//expect().to.be();
//});
done();
});
});
describe('databaseMigrationDownDatabaseIdGet', function() {
it('should call databaseMigrationDownDatabaseIdGet successfully', function(done) {
//uncomment below and update the code to test databaseMigrationDownDatabaseIdGet
//instance.databaseMigrationDownDatabaseIdGet(function(error) {
// if (error) throw error;
//expect().to.be();
//});
done();
});
});
describe('databaseMigrationUpDatabaseIdGet', function() {
it('should call databaseMigrationUpDatabaseIdGet successfully', function(done) {
//uncomment below and update the code to test databaseMigrationUpDatabaseIdGet
//instance.databaseMigrationUpDatabaseIdGet(function(error) {
// if (error) throw error;
//expect().to.be();
//});
done();
});
});
describe('databaseNodeCreatePost', function() {
it('should call databaseNodeCreatePost successfully', function(done) {
//uncomment below and update the code to test databaseNodeCreatePost
//instance.databaseNodeCreatePost(function(error) {
// if (error) throw error;
//expect().to.be();
//});
done();
});
});
describe('databaseQueryDatabaseIdPost', function() {
it('should call databaseQueryDatabaseIdPost successfully', function(done) {
//uncomment below and update the code to test databaseQueryDatabaseIdPost
//instance.databaseQueryDatabaseIdPost(function(error) {
// if (error) throw error;
//expect().to.be();
//});
done();
});
});
describe('databaseTablesDatabaseIdGet', function() {
it('should call databaseTablesDatabaseIdGet successfully', function(done) {
//uncomment below and update the code to test databaseTablesDatabaseIdGet
//instance.databaseTablesDatabaseIdGet(function(error) {
// if (error) throw error;
//expect().to.be();
//});
done();
});
});
});
}));

View File

@ -1,73 +0,0 @@
/**
* Low-Code Engine API
* API documentation for the Low-Code Engine platform that provides query execution, database management, and project administration capabilities.
*
* The version of the OpenAPI document: 1.0.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*
*/
(function(root, factory) {
if (typeof define === 'function' && define.amd) {
// AMD.
define(['expect.js', process.cwd()+'/src/index'], factory);
} else if (typeof module === 'object' && module.exports) {
// CommonJS-like environments that support module.exports, like Node.
factory(require('expect.js'), require(process.cwd()+'/src/index'));
} else {
// Browser globals (root is window)
factory(root.expect, root.LowCodeEngineApi);
}
}(this, function(expect, LowCodeEngineApi) {
'use strict';
var instance;
beforeEach(function() {
instance = new LowCodeEngineApi.FunctionsApi();
});
var getProperty = function(object, getter, property) {
// Use getter method if present; otherwise, get the property directly.
if (typeof object[getter] === 'function')
return object[getter]();
else
return object[property];
}
var setProperty = function(object, setter, property, value) {
// Use setter method if present; otherwise, set the property directly.
if (typeof object[setter] === 'function')
object[setter](value);
else
object[property] = value;
}
describe('FunctionsApi', function() {
describe('functionsCreatePost', function() {
it('should call functionsCreatePost successfully', function(done) {
//uncomment below and update the code to test functionsCreatePost
//instance.functionsCreatePost(function(error) {
// if (error) throw error;
//expect().to.be();
//});
done();
});
});
describe('functionsDeletePost', function() {
it('should call functionsDeletePost successfully', function(done) {
//uncomment below and update the code to test functionsDeletePost
//instance.functionsDeletePost(function(error) {
// if (error) throw error;
//expect().to.be();
//});
done();
});
});
});
}));

View File

@ -1,83 +0,0 @@
/**
* Low-Code Engine API
* API documentation for the Low-Code Engine platform that provides query execution, database management, and project administration capabilities.
*
* The version of the OpenAPI document: 1.0.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*
*/
(function(root, factory) {
if (typeof define === 'function' && define.amd) {
// AMD.
define(['expect.js', process.cwd()+'/src/index'], factory);
} else if (typeof module === 'object' && module.exports) {
// CommonJS-like environments that support module.exports, like Node.
factory(require('expect.js'), require(process.cwd()+'/src/index'));
} else {
// Browser globals (root is window)
factory(root.expect, root.LowCodeEngineApi);
}
}(this, function(expect, LowCodeEngineApi) {
'use strict';
var instance;
beforeEach(function() {
instance = new LowCodeEngineApi.LoggingApi();
});
var getProperty = function(object, getter, property) {
// Use getter method if present; otherwise, get the property directly.
if (typeof object[getter] === 'function')
return object[getter]();
else
return object[property];
}
var setProperty = function(object, setter, property, value) {
// Use setter method if present; otherwise, set the property directly.
if (typeof object[setter] === 'function')
object[setter](value);
else
object[property] = value;
}
describe('LoggingApi', function() {
describe('loggerIdFindAllPost', function() {
it('should call loggerIdFindAllPost successfully', function(done) {
//uncomment below and update the code to test loggerIdFindAllPost
//instance.loggerIdFindAllPost(function(error) {
// if (error) throw error;
//expect().to.be();
//});
done();
});
});
describe('loggerIdFindPost', function() {
it('should call loggerIdFindPost successfully', function(done) {
//uncomment below and update the code to test loggerIdFindPost
//instance.loggerIdFindPost(function(error) {
// if (error) throw error;
//expect().to.be();
//});
done();
});
});
describe('loggerIdTraceIdGet', function() {
it('should call loggerIdTraceIdGet successfully', function(done) {
//uncomment below and update the code to test loggerIdTraceIdGet
//instance.loggerIdTraceIdGet(function(error) {
// if (error) throw error;
//expect().to.be();
//});
done();
});
});
});
}));

View File

@ -1,113 +0,0 @@
/**
* Low-Code Engine API
* API documentation for the Low-Code Engine platform that provides query execution, database management, and project administration capabilities.
*
* The version of the OpenAPI document: 1.0.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*
*/
(function(root, factory) {
if (typeof define === 'function' && define.amd) {
// AMD.
define(['expect.js', process.cwd()+'/src/index'], factory);
} else if (typeof module === 'object' && module.exports) {
// CommonJS-like environments that support module.exports, like Node.
factory(require('expect.js'), require(process.cwd()+'/src/index'));
} else {
// Browser globals (root is window)
factory(root.expect, root.LowCodeEngineApi);
}
}(this, function(expect, LowCodeEngineApi) {
'use strict';
var instance;
beforeEach(function() {
instance = new LowCodeEngineApi.ProjectManagementApi();
});
var getProperty = function(object, getter, property) {
// Use getter method if present; otherwise, get the property directly.
if (typeof object[getter] === 'function')
return object[getter]();
else
return object[property];
}
var setProperty = function(object, setter, property, value) {
// Use setter method if present; otherwise, set the property directly.
if (typeof object[setter] === 'function')
object[setter](value);
else
object[property] = value;
}
describe('ProjectManagementApi', function() {
describe('projectApiTokensGet', function() {
it('should call projectApiTokensGet successfully', function(done) {
//uncomment below and update the code to test projectApiTokensGet
//instance.projectApiTokensGet(function(error) {
// if (error) throw error;
//expect().to.be();
//});
done();
});
});
describe('projectCreatePut', function() {
it('should call projectCreatePut successfully', function(done) {
//uncomment below and update the code to test projectCreatePut
//instance.projectCreatePut(function(error) {
// if (error) throw error;
//expect().to.be();
//});
done();
});
});
describe('projectCreateWithoutDbPut', function() {
it('should call projectCreateWithoutDbPut successfully', function(done) {
//uncomment below and update the code to test projectCreateWithoutDbPut
//instance.projectCreateWithoutDbPut(function(error) {
// if (error) throw error;
//expect().to.be();
//});
done();
});
});
describe('projectSettingsCreatePut', function() {
it('should call projectSettingsCreatePut successfully', function(done) {
//uncomment below and update the code to test projectSettingsCreatePut
//instance.projectSettingsCreatePut(function(error) {
// if (error) throw error;
//expect().to.be();
//});
done();
});
});
describe('projectSettingsDeleteKeyDelete', function() {
it('should call projectSettingsDeleteKeyDelete successfully', function(done) {
//uncomment below and update the code to test projectSettingsDeleteKeyDelete
//instance.projectSettingsDeleteKeyDelete(function(error) {
// if (error) throw error;
//expect().to.be();
//});
done();
});
});
describe('projectSettingsGet', function() {
it('should call projectSettingsGet successfully', function(done) {
//uncomment below and update the code to test projectSettingsGet
//instance.projectSettingsGet(function(error) {
// if (error) throw error;
//expect().to.be();
//});
done();
});
});
});
}));

View File

@ -1,93 +0,0 @@
/**
* Low-Code Engine API
* API documentation for the Low-Code Engine platform that provides query execution, database management, and project administration capabilities.
*
* The version of the OpenAPI document: 1.0.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*
*/
(function(root, factory) {
if (typeof define === 'function' && define.amd) {
// AMD.
define(['expect.js', process.cwd()+'/src/index'], factory);
} else if (typeof module === 'object' && module.exports) {
// CommonJS-like environments that support module.exports, like Node.
factory(require('expect.js'), require(process.cwd()+'/src/index'));
} else {
// Browser globals (root is window)
factory(root.expect, root.LowCodeEngineApi);
}
}(this, function(expect, LowCodeEngineApi) {
'use strict';
var instance;
beforeEach(function() {
instance = new LowCodeEngineApi.QueriesApi();
});
var getProperty = function(object, getter, property) {
// Use getter method if present; otherwise, get the property directly.
if (typeof object[getter] === 'function')
return object[getter]();
else
return object[property];
}
var setProperty = function(object, setter, property, value) {
// Use setter method if present; otherwise, set the property directly.
if (typeof object[setter] === 'function')
object[setter](value);
else
object[property] = value;
}
describe('QueriesApi', function() {
describe('queryCreatePost', function() {
it('should call queryCreatePost successfully', function(done) {
//uncomment below and update the code to test queryCreatePost
//instance.queryCreatePost(function(error) {
// if (error) throw error;
//expect().to.be();
//});
done();
});
});
describe('queryDeleteIdDelete', function() {
it('should call queryDeleteIdDelete successfully', function(done) {
//uncomment below and update the code to test queryDeleteIdDelete
//instance.queryDeleteIdDelete(function(error) {
// if (error) throw error;
//expect().to.be();
//});
done();
});
});
describe('queryRunIdPost', function() {
it('should call queryRunIdPost successfully', function(done) {
//uncomment below and update the code to test queryRunIdPost
//instance.queryRunIdPost(function(error) {
// if (error) throw error;
//expect().to.be();
//});
done();
});
});
describe('queryUpdateIdPost', function() {
it('should call queryUpdateIdPost successfully', function(done) {
//uncomment below and update the code to test queryUpdateIdPost
//instance.queryUpdateIdPost(function(error) {
// if (error) throw error;
//expect().to.be();
//});
done();
});
});
});
}));

View File

@ -1,63 +0,0 @@
/**
* Low-Code Engine API
* API documentation for the Low-Code Engine platform that provides query execution, database management, and project administration capabilities.
*
* The version of the OpenAPI document: 1.0.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*
*/
(function(root, factory) {
if (typeof define === 'function' && define.amd) {
// AMD.
define(['expect.js', process.cwd()+'/src/index'], factory);
} else if (typeof module === 'object' && module.exports) {
// CommonJS-like environments that support module.exports, like Node.
factory(require('expect.js'), require(process.cwd()+'/src/index'));
} else {
// Browser globals (root is window)
factory(root.expect, root.LowCodeEngineApi);
}
}(this, function(expect, LowCodeEngineApi) {
'use strict';
var instance;
beforeEach(function() {
instance = new LowCodeEngineApi.RedisManagementApi();
});
var getProperty = function(object, getter, property) {
// Use getter method if present; otherwise, get the property directly.
if (typeof object[getter] === 'function')
return object[getter]();
else
return object[property];
}
var setProperty = function(object, setter, property, value) {
// Use setter method if present; otherwise, set the property directly.
if (typeof object[setter] === 'function')
object[setter](value);
else
object[property] = value;
}
describe('RedisManagementApi', function() {
describe('redisNodeCreatePost', function() {
it('should call redisNodeCreatePost successfully', function(done) {
//uncomment below and update the code to test redisNodeCreatePost
//instance.redisNodeCreatePost(function(error) {
// if (error) throw error;
//expect().to.be();
//});
done();
});
});
});
}));

View File

@ -1,65 +0,0 @@
/**
* Low-Code Engine API
* API documentation for the Low-Code Engine platform that provides query execution, database management, and project administration capabilities.
*
* The version of the OpenAPI document: 1.0.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*
*/
(function(root, factory) {
if (typeof define === 'function' && define.amd) {
// AMD.
define(['expect.js', process.cwd()+'/src/index'], factory);
} else if (typeof module === 'object' && module.exports) {
// CommonJS-like environments that support module.exports, like Node.
factory(require('expect.js'), require(process.cwd()+'/src/index'));
} else {
// Browser globals (root is window)
factory(root.expect, root.LowCodeEngineApi);
}
}(this, function(expect, LowCodeEngineApi) {
'use strict';
var instance;
beforeEach(function() {
instance = new LowCodeEngineApi.ApiTokenGeneratePostRequest();
});
var getProperty = function(object, getter, property) {
// Use getter method if present; otherwise, get the property directly.
if (typeof object[getter] === 'function')
return object[getter]();
else
return object[property];
}
var setProperty = function(object, setter, property, value) {
// Use setter method if present; otherwise, set the property directly.
if (typeof object[setter] === 'function')
object[setter](value);
else
object[property] = value;
}
describe('ApiTokenGeneratePostRequest', function() {
it('should create an instance of ApiTokenGeneratePostRequest', function() {
// uncomment below and update the code to test ApiTokenGeneratePostRequest
//var instance = new LowCodeEngineApi.ApiTokenGeneratePostRequest();
//expect(instance).to.be.a(LowCodeEngineApi.ApiTokenGeneratePostRequest);
});
it('should have the property id (base name: "id")', function() {
// uncomment below and update the code to test the property id
//var instance = new LowCodeEngineApi.ApiTokenGeneratePostRequest();
//expect(instance).to.be();
});
});
}));

View File

@ -1,65 +0,0 @@
/**
* Low-Code Engine API
* API documentation for the Low-Code Engine platform that provides query execution, database management, and project administration capabilities.
*
* The version of the OpenAPI document: 1.0.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*
*/
(function(root, factory) {
if (typeof define === 'function' && define.amd) {
// AMD.
define(['expect.js', process.cwd()+'/src/index'], factory);
} else if (typeof module === 'object' && module.exports) {
// CommonJS-like environments that support module.exports, like Node.
factory(require('expect.js'), require(process.cwd()+'/src/index'));
} else {
// Browser globals (root is window)
factory(root.expect, root.LowCodeEngineApi);
}
}(this, function(expect, LowCodeEngineApi) {
'use strict';
var instance;
beforeEach(function() {
instance = new LowCodeEngineApi.CommandCreatePostRequest();
});
var getProperty = function(object, getter, property) {
// Use getter method if present; otherwise, get the property directly.
if (typeof object[getter] === 'function')
return object[getter]();
else
return object[property];
}
var setProperty = function(object, setter, property, value) {
// Use setter method if present; otherwise, set the property directly.
if (typeof object[setter] === 'function')
object[setter](value);
else
object[property] = value;
}
describe('CommandCreatePostRequest', function() {
it('should create an instance of CommandCreatePostRequest', function() {
// uncomment below and update the code to test CommandCreatePostRequest
//var instance = new LowCodeEngineApi.CommandCreatePostRequest();
//expect(instance).to.be.a(LowCodeEngineApi.CommandCreatePostRequest);
});
it('should have the property source (base name: "source")', function() {
// uncomment below and update the code to test the property source
//var instance = new LowCodeEngineApi.CommandCreatePostRequest();
//expect(instance).to.be();
});
});
}));

View File

@ -1,65 +0,0 @@
/**
* Low-Code Engine API
* API documentation for the Low-Code Engine platform that provides query execution, database management, and project administration capabilities.
*
* The version of the OpenAPI document: 1.0.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*
*/
(function(root, factory) {
if (typeof define === 'function' && define.amd) {
// AMD.
define(['expect.js', process.cwd()+'/src/index'], factory);
} else if (typeof module === 'object' && module.exports) {
// CommonJS-like environments that support module.exports, like Node.
factory(require('expect.js'), require(process.cwd()+'/src/index'));
} else {
// Browser globals (root is window)
factory(root.expect, root.LowCodeEngineApi);
}
}(this, function(expect, LowCodeEngineApi) {
'use strict';
var instance;
beforeEach(function() {
instance = new LowCodeEngineApi.CommandUpdateIdPostRequest();
});
var getProperty = function(object, getter, property) {
// Use getter method if present; otherwise, get the property directly.
if (typeof object[getter] === 'function')
return object[getter]();
else
return object[property];
}
var setProperty = function(object, setter, property, value) {
// Use setter method if present; otherwise, set the property directly.
if (typeof object[setter] === 'function')
object[setter](value);
else
object[property] = value;
}
describe('CommandUpdateIdPostRequest', function() {
it('should create an instance of CommandUpdateIdPostRequest', function() {
// uncomment below and update the code to test CommandUpdateIdPostRequest
//var instance = new LowCodeEngineApi.CommandUpdateIdPostRequest();
//expect(instance).to.be.a(LowCodeEngineApi.CommandUpdateIdPostRequest);
});
it('should have the property source (base name: "source")', function() {
// uncomment below and update the code to test the property source
//var instance = new LowCodeEngineApi.CommandUpdateIdPostRequest();
//expect(instance).to.be();
});
});
}));

View File

@ -1,107 +0,0 @@
/**
* Low-Code Engine API
* API documentation for the Low-Code Engine platform that provides query execution, database management, and project administration capabilities.
*
* The version of the OpenAPI document: 1.0.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*
*/
(function(root, factory) {
if (typeof define === 'function' && define.amd) {
// AMD.
define(['expect.js', process.cwd()+'/src/index'], factory);
} else if (typeof module === 'object' && module.exports) {
// CommonJS-like environments that support module.exports, like Node.
factory(require('expect.js'), require(process.cwd()+'/src/index'));
} else {
// Browser globals (root is window)
factory(root.expect, root.LowCodeEngineApi);
}
}(this, function(expect, LowCodeEngineApi) {
'use strict';
var instance;
beforeEach(function() {
instance = new LowCodeEngineApi.Database();
});
var getProperty = function(object, getter, property) {
// Use getter method if present; otherwise, get the property directly.
if (typeof object[getter] === 'function')
return object[getter]();
else
return object[property];
}
var setProperty = function(object, setter, property, value) {
// Use setter method if present; otherwise, set the property directly.
if (typeof object[setter] === 'function')
object[setter](value);
else
object[property] = value;
}
describe('Database', function() {
it('should create an instance of Database', function() {
// uncomment below and update the code to test Database
//var instance = new LowCodeEngineApi.Database();
//expect(instance).to.be.a(LowCodeEngineApi.Database);
});
it('should have the property id (base name: "id")', function() {
// uncomment below and update the code to test the property id
//var instance = new LowCodeEngineApi.Database();
//expect(instance).to.be();
});
it('should have the property qUsername (base name: "q_username")', function() {
// uncomment below and update the code to test the property qUsername
//var instance = new LowCodeEngineApi.Database();
//expect(instance).to.be();
});
it('should have the property cUsername (base name: "c_username")', function() {
// uncomment below and update the code to test the property cUsername
//var instance = new LowCodeEngineApi.Database();
//expect(instance).to.be();
});
it('should have the property password (base name: "password")', function() {
// uncomment below and update the code to test the property password
//var instance = new LowCodeEngineApi.Database();
//expect(instance).to.be();
});
it('should have the property database (base name: "database")', function() {
// uncomment below and update the code to test the property database
//var instance = new LowCodeEngineApi.Database();
//expect(instance).to.be();
});
it('should have the property migrations (base name: "migrations")', function() {
// uncomment below and update the code to test the property migrations
//var instance = new LowCodeEngineApi.Database();
//expect(instance).to.be();
});
it('should have the property project (base name: "project")', function() {
// uncomment below and update the code to test the property project
//var instance = new LowCodeEngineApi.Database();
//expect(instance).to.be();
});
it('should have the property node (base name: "node")', function() {
// uncomment below and update the code to test the property node
//var instance = new LowCodeEngineApi.Database();
//expect(instance).to.be();
});
});
}));

View File

@ -1,65 +0,0 @@
/**
* Low-Code Engine API
* API documentation for the Low-Code Engine platform that provides query execution, database management, and project administration capabilities.
*
* The version of the OpenAPI document: 1.0.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*
*/
(function(root, factory) {
if (typeof define === 'function' && define.amd) {
// AMD.
define(['expect.js', process.cwd()+'/src/index'], factory);
} else if (typeof module === 'object' && module.exports) {
// CommonJS-like environments that support module.exports, like Node.
factory(require('expect.js'), require(process.cwd()+'/src/index'));
} else {
// Browser globals (root is window)
factory(root.expect, root.LowCodeEngineApi);
}
}(this, function(expect, LowCodeEngineApi) {
'use strict';
var instance;
beforeEach(function() {
instance = new LowCodeEngineApi.DatabaseCreatePostRequest();
});
var getProperty = function(object, getter, property) {
// Use getter method if present; otherwise, get the property directly.
if (typeof object[getter] === 'function')
return object[getter]();
else
return object[property];
}
var setProperty = function(object, setter, property, value) {
// Use setter method if present; otherwise, set the property directly.
if (typeof object[setter] === 'function')
object[setter](value);
else
object[property] = value;
}
describe('DatabaseCreatePostRequest', function() {
it('should create an instance of DatabaseCreatePostRequest', function() {
// uncomment below and update the code to test DatabaseCreatePostRequest
//var instance = new LowCodeEngineApi.DatabaseCreatePostRequest();
//expect(instance).to.be.a(LowCodeEngineApi.DatabaseCreatePostRequest);
});
it('should have the property projectId (base name: "projectId")', function() {
// uncomment below and update the code to test the property projectId
//var instance = new LowCodeEngineApi.DatabaseCreatePostRequest();
//expect(instance).to.be();
});
});
}));

View File

@ -1,77 +0,0 @@
/**
* Low-Code Engine API
* API documentation for the Low-Code Engine platform that provides query execution, database management, and project administration capabilities.
*
* The version of the OpenAPI document: 1.0.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*
*/
(function(root, factory) {
if (typeof define === 'function' && define.amd) {
// AMD.
define(['expect.js', process.cwd()+'/src/index'], factory);
} else if (typeof module === 'object' && module.exports) {
// CommonJS-like environments that support module.exports, like Node.
factory(require('expect.js'), require(process.cwd()+'/src/index'));
} else {
// Browser globals (root is window)
factory(root.expect, root.LowCodeEngineApi);
}
}(this, function(expect, LowCodeEngineApi) {
'use strict';
var instance;
beforeEach(function() {
instance = new LowCodeEngineApi.DatabaseMigrationCreatePostRequest();
});
var getProperty = function(object, getter, property) {
// Use getter method if present; otherwise, get the property directly.
if (typeof object[getter] === 'function')
return object[getter]();
else
return object[property];
}
var setProperty = function(object, setter, property, value) {
// Use setter method if present; otherwise, set the property directly.
if (typeof object[setter] === 'function')
object[setter](value);
else
object[property] = value;
}
describe('DatabaseMigrationCreatePostRequest', function() {
it('should create an instance of DatabaseMigrationCreatePostRequest', function() {
// uncomment below and update the code to test DatabaseMigrationCreatePostRequest
//var instance = new LowCodeEngineApi.DatabaseMigrationCreatePostRequest();
//expect(instance).to.be.a(LowCodeEngineApi.DatabaseMigrationCreatePostRequest);
});
it('should have the property up (base name: "up")', function() {
// uncomment below and update the code to test the property up
//var instance = new LowCodeEngineApi.DatabaseMigrationCreatePostRequest();
//expect(instance).to.be();
});
it('should have the property down (base name: "down")', function() {
// uncomment below and update the code to test the property down
//var instance = new LowCodeEngineApi.DatabaseMigrationCreatePostRequest();
//expect(instance).to.be();
});
it('should have the property databaseId (base name: "databaseId")', function() {
// uncomment below and update the code to test the property databaseId
//var instance = new LowCodeEngineApi.DatabaseMigrationCreatePostRequest();
//expect(instance).to.be();
});
});
}));

View File

@ -1,95 +0,0 @@
/**
* Low-Code Engine API
* API documentation for the Low-Code Engine platform that provides query execution, database management, and project administration capabilities.
*
* The version of the OpenAPI document: 1.0.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*
*/
(function(root, factory) {
if (typeof define === 'function' && define.amd) {
// AMD.
define(['expect.js', process.cwd()+'/src/index'], factory);
} else if (typeof module === 'object' && module.exports) {
// CommonJS-like environments that support module.exports, like Node.
factory(require('expect.js'), require(process.cwd()+'/src/index'));
} else {
// Browser globals (root is window)
factory(root.expect, root.LowCodeEngineApi);
}
}(this, function(expect, LowCodeEngineApi) {
'use strict';
var instance;
beforeEach(function() {
instance = new LowCodeEngineApi.DatabaseNode();
});
var getProperty = function(object, getter, property) {
// Use getter method if present; otherwise, get the property directly.
if (typeof object[getter] === 'function')
return object[getter]();
else
return object[property];
}
var setProperty = function(object, setter, property, value) {
// Use setter method if present; otherwise, set the property directly.
if (typeof object[setter] === 'function')
object[setter](value);
else
object[property] = value;
}
describe('DatabaseNode', function() {
it('should create an instance of DatabaseNode', function() {
// uncomment below and update the code to test DatabaseNode
//var instance = new LowCodeEngineApi.DatabaseNode();
//expect(instance).to.be.a(LowCodeEngineApi.DatabaseNode);
});
it('should have the property id (base name: "id")', function() {
// uncomment below and update the code to test the property id
//var instance = new LowCodeEngineApi.DatabaseNode();
//expect(instance).to.be();
});
it('should have the property host (base name: "host")', function() {
// uncomment below and update the code to test the property host
//var instance = new LowCodeEngineApi.DatabaseNode();
//expect(instance).to.be();
});
it('should have the property port (base name: "port")', function() {
// uncomment below and update the code to test the property port
//var instance = new LowCodeEngineApi.DatabaseNode();
//expect(instance).to.be();
});
it('should have the property username (base name: "username")', function() {
// uncomment below and update the code to test the property username
//var instance = new LowCodeEngineApi.DatabaseNode();
//expect(instance).to.be();
});
it('should have the property password (base name: "password")', function() {
// uncomment below and update the code to test the property password
//var instance = new LowCodeEngineApi.DatabaseNode();
//expect(instance).to.be();
});
it('should have the property databases (base name: "databases")', function() {
// uncomment below and update the code to test the property databases
//var instance = new LowCodeEngineApi.DatabaseNode();
//expect(instance).to.be();
});
});
}));

Some files were not shown because too many files have changed in this diff Show More