Add API documentation and models for Functions, Logs, Projects, Queries, and Redis Management
- Created documentation for FunctionsCreatePostRequest and FunctionsDeletePostRequest. - Added Log and LogContentInner models with corresponding documentation. - Introduced LoggerIdFindAllPostRequest and LoggingApi for log management. - Added Migration and Project models with their respective documentation. - Implemented ProjectCreatePutRequest and ProjectManagementApi for project management. - Created Query and QueryCreatePostRequest models with documentation. - Added RedisNode and RedisNodeCreatePostRequest for Redis management. - Included Token model for API token management. - Added a script for git push operations and updated index.ts for API exports.
This commit is contained in:
118
out/ts/docs/APITokensApi.md
Normal file
118
out/ts/docs/APITokensApi.md
Normal file
@ -0,0 +1,118 @@
|
||||
# APITokensApi
|
||||
|
||||
All URIs are relative to *http://localhost:3000*
|
||||
|
||||
|Method | HTTP request | Description|
|
||||
|------------- | ------------- | -------------|
|
||||
|[**apiTokenGeneratePost**](#apitokengeneratepost) | **POST** /api/token/generate | Generate API token|
|
||||
|[**apiTokenRevokeTokenDelete**](#apitokenrevoketokendelete) | **DELETE** /api/token/revoke/{token} | Revoke API token|
|
||||
|
||||
# **apiTokenGeneratePost**
|
||||
> Token apiTokenGeneratePost(apiTokenGeneratePostRequest)
|
||||
|
||||
Generate a new API token for a project
|
||||
|
||||
### Example
|
||||
|
||||
```typescript
|
||||
import {
|
||||
APITokensApi,
|
||||
Configuration,
|
||||
ApiTokenGeneratePostRequest
|
||||
} from './api';
|
||||
|
||||
const configuration = new Configuration();
|
||||
const apiInstance = new APITokensApi(configuration);
|
||||
|
||||
let apiTokenGeneratePostRequest: ApiTokenGeneratePostRequest; //
|
||||
|
||||
const { status, data } = await apiInstance.apiTokenGeneratePost(
|
||||
apiTokenGeneratePostRequest
|
||||
);
|
||||
```
|
||||
|
||||
### Parameters
|
||||
|
||||
|Name | Type | Description | Notes|
|
||||
|------------- | ------------- | ------------- | -------------|
|
||||
| **apiTokenGeneratePostRequest** | **ApiTokenGeneratePostRequest**| | |
|
||||
|
||||
|
||||
### Return type
|
||||
|
||||
**Token**
|
||||
|
||||
### Authorization
|
||||
|
||||
[AdminAuth](../README.md#AdminAuth), [ApiKeyAuth](../README.md#ApiKeyAuth)
|
||||
|
||||
### HTTP request headers
|
||||
|
||||
- **Content-Type**: application/json
|
||||
- **Accept**: application/json
|
||||
|
||||
|
||||
### HTTP response details
|
||||
| Status code | Description | Response headers |
|
||||
|-------------|-------------|------------------|
|
||||
|**200** | Token generated successfully | - |
|
||||
|**400** | Project ID is required | - |
|
||||
|**401** | Unauthorized | - |
|
||||
|**403** | Admin access required | - |
|
||||
|
||||
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
||||
|
||||
# **apiTokenRevokeTokenDelete**
|
||||
> apiTokenRevokeTokenDelete()
|
||||
|
||||
Revoke an existing API token
|
||||
|
||||
### Example
|
||||
|
||||
```typescript
|
||||
import {
|
||||
APITokensApi,
|
||||
Configuration
|
||||
} from './api';
|
||||
|
||||
const configuration = new Configuration();
|
||||
const apiInstance = new APITokensApi(configuration);
|
||||
|
||||
let token: string; //Token to revoke (default to undefined)
|
||||
|
||||
const { status, data } = await apiInstance.apiTokenRevokeTokenDelete(
|
||||
token
|
||||
);
|
||||
```
|
||||
|
||||
### Parameters
|
||||
|
||||
|Name | Type | Description | Notes|
|
||||
|------------- | ------------- | ------------- | -------------|
|
||||
| **token** | [**string**] | Token to revoke | defaults to undefined|
|
||||
|
||||
|
||||
### Return type
|
||||
|
||||
void (empty response body)
|
||||
|
||||
### Authorization
|
||||
|
||||
[AdminAuth](../README.md#AdminAuth), [ApiKeyAuth](../README.md#ApiKeyAuth)
|
||||
|
||||
### HTTP request headers
|
||||
|
||||
- **Content-Type**: Not defined
|
||||
- **Accept**: Not defined
|
||||
|
||||
|
||||
### HTTP response details
|
||||
| Status code | Description | Response headers |
|
||||
|-------------|-------------|------------------|
|
||||
|**200** | Token revoked successfully | - |
|
||||
|**401** | Unauthorized | - |
|
||||
|**403** | Admin access required | - |
|
||||
|**404** | Token not found | - |
|
||||
|
||||
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
||||
|
||||
20
out/ts/docs/ApiTokenGeneratePostRequest.md
Normal file
20
out/ts/docs/ApiTokenGeneratePostRequest.md
Normal file
@ -0,0 +1,20 @@
|
||||
# ApiTokenGeneratePostRequest
|
||||
|
||||
|
||||
## Properties
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**id** | **string** | Project ID | [default to undefined]
|
||||
|
||||
## Example
|
||||
|
||||
```typescript
|
||||
import { ApiTokenGeneratePostRequest } from './api';
|
||||
|
||||
const instance: ApiTokenGeneratePostRequest = {
|
||||
id,
|
||||
};
|
||||
```
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
20
out/ts/docs/CommandCreatePostRequest.md
Normal file
20
out/ts/docs/CommandCreatePostRequest.md
Normal file
@ -0,0 +1,20 @@
|
||||
# CommandCreatePostRequest
|
||||
|
||||
|
||||
## Properties
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**source** | **string** | Command source code | [default to undefined]
|
||||
|
||||
## Example
|
||||
|
||||
```typescript
|
||||
import { CommandCreatePostRequest } from './api';
|
||||
|
||||
const instance: CommandCreatePostRequest = {
|
||||
source,
|
||||
};
|
||||
```
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
20
out/ts/docs/CommandUpdateIdPostRequest.md
Normal file
20
out/ts/docs/CommandUpdateIdPostRequest.md
Normal file
@ -0,0 +1,20 @@
|
||||
# CommandUpdateIdPostRequest
|
||||
|
||||
|
||||
## Properties
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**source** | **string** | Updated command source code | [optional] [default to undefined]
|
||||
|
||||
## Example
|
||||
|
||||
```typescript
|
||||
import { CommandUpdateIdPostRequest } from './api';
|
||||
|
||||
const instance: CommandUpdateIdPostRequest = {
|
||||
source,
|
||||
};
|
||||
```
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
238
out/ts/docs/CommandsApi.md
Normal file
238
out/ts/docs/CommandsApi.md
Normal file
@ -0,0 +1,238 @@
|
||||
# CommandsApi
|
||||
|
||||
All URIs are relative to *http://localhost:3000*
|
||||
|
||||
|Method | HTTP request | Description|
|
||||
|------------- | ------------- | -------------|
|
||||
|[**commandCreatePost**](#commandcreatepost) | **POST** /command/create | Create command|
|
||||
|[**commandDeleteIdDelete**](#commanddeleteiddelete) | **DELETE** /command/delete/{id} | Delete command|
|
||||
|[**commandRunIdPost**](#commandrunidpost) | **POST** /command/run/{id} | Run command|
|
||||
|[**commandUpdateIdPost**](#commandupdateidpost) | **POST** /command/update/{id} | Update command|
|
||||
|
||||
# **commandCreatePost**
|
||||
> Query commandCreatePost(commandCreatePostRequest)
|
||||
|
||||
Create a new command in the project
|
||||
|
||||
### Example
|
||||
|
||||
```typescript
|
||||
import {
|
||||
CommandsApi,
|
||||
Configuration,
|
||||
CommandCreatePostRequest
|
||||
} from './api';
|
||||
|
||||
const configuration = new Configuration();
|
||||
const apiInstance = new CommandsApi(configuration);
|
||||
|
||||
let commandCreatePostRequest: CommandCreatePostRequest; //
|
||||
|
||||
const { status, data } = await apiInstance.commandCreatePost(
|
||||
commandCreatePostRequest
|
||||
);
|
||||
```
|
||||
|
||||
### Parameters
|
||||
|
||||
|Name | Type | Description | Notes|
|
||||
|------------- | ------------- | ------------- | -------------|
|
||||
| **commandCreatePostRequest** | **CommandCreatePostRequest**| | |
|
||||
|
||||
|
||||
### Return type
|
||||
|
||||
**Query**
|
||||
|
||||
### Authorization
|
||||
|
||||
[ApiKeyAuth](../README.md#ApiKeyAuth)
|
||||
|
||||
### HTTP request headers
|
||||
|
||||
- **Content-Type**: application/json
|
||||
- **Accept**: application/json
|
||||
|
||||
|
||||
### HTTP response details
|
||||
| Status code | Description | Response headers |
|
||||
|-------------|-------------|------------------|
|
||||
|**200** | Command created successfully | - |
|
||||
|**401** | Unauthorized | - |
|
||||
|
||||
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
||||
|
||||
# **commandDeleteIdDelete**
|
||||
> commandDeleteIdDelete()
|
||||
|
||||
Delete an existing command
|
||||
|
||||
### Example
|
||||
|
||||
```typescript
|
||||
import {
|
||||
CommandsApi,
|
||||
Configuration
|
||||
} from './api';
|
||||
|
||||
const configuration = new Configuration();
|
||||
const apiInstance = new CommandsApi(configuration);
|
||||
|
||||
let id: string; //Command ID (default to undefined)
|
||||
|
||||
const { status, data } = await apiInstance.commandDeleteIdDelete(
|
||||
id
|
||||
);
|
||||
```
|
||||
|
||||
### Parameters
|
||||
|
||||
|Name | Type | Description | Notes|
|
||||
|------------- | ------------- | ------------- | -------------|
|
||||
| **id** | [**string**] | Command ID | defaults to undefined|
|
||||
|
||||
|
||||
### Return type
|
||||
|
||||
void (empty response body)
|
||||
|
||||
### Authorization
|
||||
|
||||
[QueryGuard](../README.md#QueryGuard), [ApiKeyAuth](../README.md#ApiKeyAuth)
|
||||
|
||||
### HTTP request headers
|
||||
|
||||
- **Content-Type**: Not defined
|
||||
- **Accept**: Not defined
|
||||
|
||||
|
||||
### HTTP response details
|
||||
| Status code | Description | Response headers |
|
||||
|-------------|-------------|------------------|
|
||||
|**200** | Command deleted successfully | - |
|
||||
|**401** | Unauthorized | - |
|
||||
|**403** | Query access required | - |
|
||||
|**404** | Command not found | - |
|
||||
|
||||
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
||||
|
||||
# **commandRunIdPost**
|
||||
> object commandRunIdPost(body)
|
||||
|
||||
Execute a command with provided data
|
||||
|
||||
### Example
|
||||
|
||||
```typescript
|
||||
import {
|
||||
CommandsApi,
|
||||
Configuration
|
||||
} from './api';
|
||||
|
||||
const configuration = new Configuration();
|
||||
const apiInstance = new CommandsApi(configuration);
|
||||
|
||||
let id: string; //Command ID (default to undefined)
|
||||
let body: object; //
|
||||
let xTraceId: string; //Trace ID for logging (optional) (default to undefined)
|
||||
|
||||
const { status, data } = await apiInstance.commandRunIdPost(
|
||||
id,
|
||||
body,
|
||||
xTraceId
|
||||
);
|
||||
```
|
||||
|
||||
### Parameters
|
||||
|
||||
|Name | Type | Description | Notes|
|
||||
|------------- | ------------- | ------------- | -------------|
|
||||
| **body** | **object**| | |
|
||||
| **id** | [**string**] | Command ID | defaults to undefined|
|
||||
| **xTraceId** | [**string**] | Trace ID for logging | (optional) defaults to undefined|
|
||||
|
||||
|
||||
### Return type
|
||||
|
||||
**object**
|
||||
|
||||
### Authorization
|
||||
|
||||
[QueryGuard](../README.md#QueryGuard), [ApiKeyAuth](../README.md#ApiKeyAuth)
|
||||
|
||||
### HTTP request headers
|
||||
|
||||
- **Content-Type**: application/json
|
||||
- **Accept**: application/json
|
||||
|
||||
|
||||
### HTTP response details
|
||||
| Status code | Description | Response headers |
|
||||
|-------------|-------------|------------------|
|
||||
|**200** | Command executed successfully | - |
|
||||
|**302** | Redirect response | - |
|
||||
|**401** | Unauthorized | - |
|
||||
|**403** | Query access required | - |
|
||||
|**404** | Command not found | - |
|
||||
|**500** | Internal Server Error | - |
|
||||
|
||||
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
||||
|
||||
# **commandUpdateIdPost**
|
||||
> Query commandUpdateIdPost(commandUpdateIdPostRequest)
|
||||
|
||||
Update an existing command
|
||||
|
||||
### Example
|
||||
|
||||
```typescript
|
||||
import {
|
||||
CommandsApi,
|
||||
Configuration,
|
||||
CommandUpdateIdPostRequest
|
||||
} from './api';
|
||||
|
||||
const configuration = new Configuration();
|
||||
const apiInstance = new CommandsApi(configuration);
|
||||
|
||||
let id: string; //Command ID (default to undefined)
|
||||
let commandUpdateIdPostRequest: CommandUpdateIdPostRequest; //
|
||||
|
||||
const { status, data } = await apiInstance.commandUpdateIdPost(
|
||||
id,
|
||||
commandUpdateIdPostRequest
|
||||
);
|
||||
```
|
||||
|
||||
### Parameters
|
||||
|
||||
|Name | Type | Description | Notes|
|
||||
|------------- | ------------- | ------------- | -------------|
|
||||
| **commandUpdateIdPostRequest** | **CommandUpdateIdPostRequest**| | |
|
||||
| **id** | [**string**] | Command ID | defaults to undefined|
|
||||
|
||||
|
||||
### Return type
|
||||
|
||||
**Query**
|
||||
|
||||
### Authorization
|
||||
|
||||
[QueryGuard](../README.md#QueryGuard), [ApiKeyAuth](../README.md#ApiKeyAuth)
|
||||
|
||||
### HTTP request headers
|
||||
|
||||
- **Content-Type**: application/json
|
||||
- **Accept**: application/json
|
||||
|
||||
|
||||
### HTTP response details
|
||||
| Status code | Description | Response headers |
|
||||
|-------------|-------------|------------------|
|
||||
|**200** | Command updated successfully | - |
|
||||
|**401** | Unauthorized | - |
|
||||
|**403** | Query access required | - |
|
||||
|**404** | Command not found | - |
|
||||
|
||||
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
||||
|
||||
34
out/ts/docs/Database.md
Normal file
34
out/ts/docs/Database.md
Normal file
@ -0,0 +1,34 @@
|
||||
# Database
|
||||
|
||||
|
||||
## Properties
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**id** | **string** | Unique database identifier | [optional] [default to undefined]
|
||||
**q_username** | **string** | Query username for database access | [optional] [default to undefined]
|
||||
**c_username** | **string** | Command username for database access | [optional] [default to undefined]
|
||||
**password** | **string** | Database password | [optional] [default to undefined]
|
||||
**database** | **string** | Database name | [optional] [default to undefined]
|
||||
**migrations** | [**Array<Migration>**](Migration.md) | | [optional] [default to undefined]
|
||||
**project** | [**Project**](Project.md) | | [optional] [default to undefined]
|
||||
**node** | [**DatabaseNode**](DatabaseNode.md) | | [optional] [default to undefined]
|
||||
|
||||
## Example
|
||||
|
||||
```typescript
|
||||
import { Database } from './api';
|
||||
|
||||
const instance: Database = {
|
||||
id,
|
||||
q_username,
|
||||
c_username,
|
||||
password,
|
||||
database,
|
||||
migrations,
|
||||
project,
|
||||
node,
|
||||
};
|
||||
```
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
20
out/ts/docs/DatabaseCreatePostRequest.md
Normal file
20
out/ts/docs/DatabaseCreatePostRequest.md
Normal file
@ -0,0 +1,20 @@
|
||||
# DatabaseCreatePostRequest
|
||||
|
||||
|
||||
## Properties
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**projectId** | **string** | Project ID | [default to undefined]
|
||||
|
||||
## Example
|
||||
|
||||
```typescript
|
||||
import { DatabaseCreatePostRequest } from './api';
|
||||
|
||||
const instance: DatabaseCreatePostRequest = {
|
||||
projectId,
|
||||
};
|
||||
```
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
448
out/ts/docs/DatabaseManagementApi.md
Normal file
448
out/ts/docs/DatabaseManagementApi.md
Normal file
@ -0,0 +1,448 @@
|
||||
# DatabaseManagementApi
|
||||
|
||||
All URIs are relative to *http://localhost:3000*
|
||||
|
||||
|Method | HTTP request | Description|
|
||||
|------------- | ------------- | -------------|
|
||||
|[**databaseColumnsDatabaseIdTableNameGet**](#databasecolumnsdatabaseidtablenameget) | **GET** /database/columns/{databaseId}/{tableName} | Get table columns|
|
||||
|[**databaseCreatePost**](#databasecreatepost) | **POST** /database/create | Create database|
|
||||
|[**databaseMigrationCreatePost**](#databasemigrationcreatepost) | **POST** /database/migration/create | Create migration|
|
||||
|[**databaseMigrationDownDatabaseIdGet**](#databasemigrationdowndatabaseidget) | **GET** /database/migration/down/{databaseId} | Run migrations down|
|
||||
|[**databaseMigrationUpDatabaseIdGet**](#databasemigrationupdatabaseidget) | **GET** /database/migration/up/{databaseId} | Run migrations up|
|
||||
|[**databaseNodeCreatePost**](#databasenodecreatepost) | **POST** /database/node/create | Add database node|
|
||||
|[**databaseQueryDatabaseIdPost**](#databasequerydatabaseidpost) | **POST** /database/query/{databaseId} | Run database query|
|
||||
|[**databaseTablesDatabaseIdGet**](#databasetablesdatabaseidget) | **GET** /database/tables/{databaseId} | Get database tables|
|
||||
|
||||
# **databaseColumnsDatabaseIdTableNameGet**
|
||||
> Array<object> databaseColumnsDatabaseIdTableNameGet()
|
||||
|
||||
Retrieve columns information for a specific table
|
||||
|
||||
### Example
|
||||
|
||||
```typescript
|
||||
import {
|
||||
DatabaseManagementApi,
|
||||
Configuration
|
||||
} from './api';
|
||||
|
||||
const configuration = new Configuration();
|
||||
const apiInstance = new DatabaseManagementApi(configuration);
|
||||
|
||||
let databaseId: string; //Database ID (default to undefined)
|
||||
let tableName: string; //Table name (default to undefined)
|
||||
|
||||
const { status, data } = await apiInstance.databaseColumnsDatabaseIdTableNameGet(
|
||||
databaseId,
|
||||
tableName
|
||||
);
|
||||
```
|
||||
|
||||
### Parameters
|
||||
|
||||
|Name | Type | Description | Notes|
|
||||
|------------- | ------------- | ------------- | -------------|
|
||||
| **databaseId** | [**string**] | Database ID | defaults to undefined|
|
||||
| **tableName** | [**string**] | Table name | defaults to undefined|
|
||||
|
||||
|
||||
### Return type
|
||||
|
||||
**Array<object>**
|
||||
|
||||
### Authorization
|
||||
|
||||
[ApiKeyAuth](../README.md#ApiKeyAuth)
|
||||
|
||||
### HTTP request headers
|
||||
|
||||
- **Content-Type**: Not defined
|
||||
- **Accept**: application/json
|
||||
|
||||
|
||||
### HTTP response details
|
||||
| Status code | Description | Response headers |
|
||||
|-------------|-------------|------------------|
|
||||
|**200** | Columns retrieved successfully | - |
|
||||
|**401** | Unauthorized | - |
|
||||
|**404** | Database or table not found | - |
|
||||
|
||||
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
||||
|
||||
# **databaseCreatePost**
|
||||
> Database databaseCreatePost(databaseCreatePostRequest)
|
||||
|
||||
Create a new database for a project
|
||||
|
||||
### Example
|
||||
|
||||
```typescript
|
||||
import {
|
||||
DatabaseManagementApi,
|
||||
Configuration,
|
||||
DatabaseCreatePostRequest
|
||||
} from './api';
|
||||
|
||||
const configuration = new Configuration();
|
||||
const apiInstance = new DatabaseManagementApi(configuration);
|
||||
|
||||
let databaseCreatePostRequest: DatabaseCreatePostRequest; //
|
||||
|
||||
const { status, data } = await apiInstance.databaseCreatePost(
|
||||
databaseCreatePostRequest
|
||||
);
|
||||
```
|
||||
|
||||
### Parameters
|
||||
|
||||
|Name | Type | Description | Notes|
|
||||
|------------- | ------------- | ------------- | -------------|
|
||||
| **databaseCreatePostRequest** | **DatabaseCreatePostRequest**| | |
|
||||
|
||||
|
||||
### Return type
|
||||
|
||||
**Database**
|
||||
|
||||
### Authorization
|
||||
|
||||
[AdminAuth](../README.md#AdminAuth), [ApiKeyAuth](../README.md#ApiKeyAuth)
|
||||
|
||||
### HTTP request headers
|
||||
|
||||
- **Content-Type**: application/json
|
||||
- **Accept**: application/json
|
||||
|
||||
|
||||
### HTTP response details
|
||||
| Status code | Description | Response headers |
|
||||
|-------------|-------------|------------------|
|
||||
|**200** | Database created successfully | - |
|
||||
|**401** | Unauthorized | - |
|
||||
|**403** | Admin access required | - |
|
||||
|
||||
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
||||
|
||||
# **databaseMigrationCreatePost**
|
||||
> Migration databaseMigrationCreatePost(databaseMigrationCreatePostRequest)
|
||||
|
||||
Create a new database migration
|
||||
|
||||
### Example
|
||||
|
||||
```typescript
|
||||
import {
|
||||
DatabaseManagementApi,
|
||||
Configuration,
|
||||
DatabaseMigrationCreatePostRequest
|
||||
} from './api';
|
||||
|
||||
const configuration = new Configuration();
|
||||
const apiInstance = new DatabaseManagementApi(configuration);
|
||||
|
||||
let databaseMigrationCreatePostRequest: DatabaseMigrationCreatePostRequest; //
|
||||
|
||||
const { status, data } = await apiInstance.databaseMigrationCreatePost(
|
||||
databaseMigrationCreatePostRequest
|
||||
);
|
||||
```
|
||||
|
||||
### Parameters
|
||||
|
||||
|Name | Type | Description | Notes|
|
||||
|------------- | ------------- | ------------- | -------------|
|
||||
| **databaseMigrationCreatePostRequest** | **DatabaseMigrationCreatePostRequest**| | |
|
||||
|
||||
|
||||
### Return type
|
||||
|
||||
**Migration**
|
||||
|
||||
### Authorization
|
||||
|
||||
[ApiKeyAuth](../README.md#ApiKeyAuth)
|
||||
|
||||
### HTTP request headers
|
||||
|
||||
- **Content-Type**: application/json
|
||||
- **Accept**: application/json
|
||||
|
||||
|
||||
### HTTP response details
|
||||
| Status code | Description | Response headers |
|
||||
|-------------|-------------|------------------|
|
||||
|**200** | Migration created successfully | - |
|
||||
|**401** | Unauthorized | - |
|
||||
|
||||
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
||||
|
||||
# **databaseMigrationDownDatabaseIdGet**
|
||||
> databaseMigrationDownDatabaseIdGet()
|
||||
|
||||
Rollback database migrations
|
||||
|
||||
### Example
|
||||
|
||||
```typescript
|
||||
import {
|
||||
DatabaseManagementApi,
|
||||
Configuration
|
||||
} from './api';
|
||||
|
||||
const configuration = new Configuration();
|
||||
const apiInstance = new DatabaseManagementApi(configuration);
|
||||
|
||||
let databaseId: string; //Database ID (default to undefined)
|
||||
|
||||
const { status, data } = await apiInstance.databaseMigrationDownDatabaseIdGet(
|
||||
databaseId
|
||||
);
|
||||
```
|
||||
|
||||
### Parameters
|
||||
|
||||
|Name | Type | Description | Notes|
|
||||
|------------- | ------------- | ------------- | -------------|
|
||||
| **databaseId** | [**string**] | Database ID | defaults to undefined|
|
||||
|
||||
|
||||
### Return type
|
||||
|
||||
void (empty response body)
|
||||
|
||||
### Authorization
|
||||
|
||||
[ApiKeyAuth](../README.md#ApiKeyAuth)
|
||||
|
||||
### HTTP request headers
|
||||
|
||||
- **Content-Type**: Not defined
|
||||
- **Accept**: Not defined
|
||||
|
||||
|
||||
### HTTP response details
|
||||
| Status code | Description | Response headers |
|
||||
|-------------|-------------|------------------|
|
||||
|**200** | Migrations rolled back successfully | - |
|
||||
|**401** | Unauthorized | - |
|
||||
|**404** | Database not found | - |
|
||||
|
||||
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
||||
|
||||
# **databaseMigrationUpDatabaseIdGet**
|
||||
> databaseMigrationUpDatabaseIdGet()
|
||||
|
||||
Execute pending database migrations
|
||||
|
||||
### Example
|
||||
|
||||
```typescript
|
||||
import {
|
||||
DatabaseManagementApi,
|
||||
Configuration
|
||||
} from './api';
|
||||
|
||||
const configuration = new Configuration();
|
||||
const apiInstance = new DatabaseManagementApi(configuration);
|
||||
|
||||
let databaseId: string; //Database ID (default to undefined)
|
||||
|
||||
const { status, data } = await apiInstance.databaseMigrationUpDatabaseIdGet(
|
||||
databaseId
|
||||
);
|
||||
```
|
||||
|
||||
### Parameters
|
||||
|
||||
|Name | Type | Description | Notes|
|
||||
|------------- | ------------- | ------------- | -------------|
|
||||
| **databaseId** | [**string**] | Database ID | defaults to undefined|
|
||||
|
||||
|
||||
### Return type
|
||||
|
||||
void (empty response body)
|
||||
|
||||
### Authorization
|
||||
|
||||
[ApiKeyAuth](../README.md#ApiKeyAuth)
|
||||
|
||||
### HTTP request headers
|
||||
|
||||
- **Content-Type**: Not defined
|
||||
- **Accept**: Not defined
|
||||
|
||||
|
||||
### HTTP response details
|
||||
| Status code | Description | Response headers |
|
||||
|-------------|-------------|------------------|
|
||||
|**200** | Migrations executed successfully | - |
|
||||
|**401** | Unauthorized | - |
|
||||
|**404** | Database not found | - |
|
||||
|
||||
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
||||
|
||||
# **databaseNodeCreatePost**
|
||||
> DatabaseNode databaseNodeCreatePost(databaseNodeCreatePostRequest)
|
||||
|
||||
Add a new database node to the system
|
||||
|
||||
### Example
|
||||
|
||||
```typescript
|
||||
import {
|
||||
DatabaseManagementApi,
|
||||
Configuration,
|
||||
DatabaseNodeCreatePostRequest
|
||||
} from './api';
|
||||
|
||||
const configuration = new Configuration();
|
||||
const apiInstance = new DatabaseManagementApi(configuration);
|
||||
|
||||
let databaseNodeCreatePostRequest: DatabaseNodeCreatePostRequest; //
|
||||
|
||||
const { status, data } = await apiInstance.databaseNodeCreatePost(
|
||||
databaseNodeCreatePostRequest
|
||||
);
|
||||
```
|
||||
|
||||
### Parameters
|
||||
|
||||
|Name | Type | Description | Notes|
|
||||
|------------- | ------------- | ------------- | -------------|
|
||||
| **databaseNodeCreatePostRequest** | **DatabaseNodeCreatePostRequest**| | |
|
||||
|
||||
|
||||
### Return type
|
||||
|
||||
**DatabaseNode**
|
||||
|
||||
### Authorization
|
||||
|
||||
[AdminAuth](../README.md#AdminAuth), [ApiKeyAuth](../README.md#ApiKeyAuth)
|
||||
|
||||
### HTTP request headers
|
||||
|
||||
- **Content-Type**: application/json
|
||||
- **Accept**: application/json
|
||||
|
||||
|
||||
### HTTP response details
|
||||
| Status code | Description | Response headers |
|
||||
|-------------|-------------|------------------|
|
||||
|**200** | Database node created successfully | - |
|
||||
|**401** | Unauthorized | - |
|
||||
|**403** | Admin access required | - |
|
||||
|
||||
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
||||
|
||||
# **databaseQueryDatabaseIdPost**
|
||||
> object databaseQueryDatabaseIdPost(databaseQueryDatabaseIdPostRequest)
|
||||
|
||||
Execute a SQL query on the database
|
||||
|
||||
### Example
|
||||
|
||||
```typescript
|
||||
import {
|
||||
DatabaseManagementApi,
|
||||
Configuration,
|
||||
DatabaseQueryDatabaseIdPostRequest
|
||||
} from './api';
|
||||
|
||||
const configuration = new Configuration();
|
||||
const apiInstance = new DatabaseManagementApi(configuration);
|
||||
|
||||
let databaseId: string; //Database ID (default to undefined)
|
||||
let databaseQueryDatabaseIdPostRequest: DatabaseQueryDatabaseIdPostRequest; //
|
||||
|
||||
const { status, data } = await apiInstance.databaseQueryDatabaseIdPost(
|
||||
databaseId,
|
||||
databaseQueryDatabaseIdPostRequest
|
||||
);
|
||||
```
|
||||
|
||||
### Parameters
|
||||
|
||||
|Name | Type | Description | Notes|
|
||||
|------------- | ------------- | ------------- | -------------|
|
||||
| **databaseQueryDatabaseIdPostRequest** | **DatabaseQueryDatabaseIdPostRequest**| | |
|
||||
| **databaseId** | [**string**] | Database ID | defaults to undefined|
|
||||
|
||||
|
||||
### Return type
|
||||
|
||||
**object**
|
||||
|
||||
### Authorization
|
||||
|
||||
[ApiKeyAuth](../README.md#ApiKeyAuth)
|
||||
|
||||
### HTTP request headers
|
||||
|
||||
- **Content-Type**: application/json
|
||||
- **Accept**: application/json
|
||||
|
||||
|
||||
### HTTP response details
|
||||
| Status code | Description | Response headers |
|
||||
|-------------|-------------|------------------|
|
||||
|**200** | Query executed successfully | - |
|
||||
|**401** | Unauthorized | - |
|
||||
|**404** | Database not found | - |
|
||||
|
||||
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
||||
|
||||
# **databaseTablesDatabaseIdGet**
|
||||
> Array<string> databaseTablesDatabaseIdGet()
|
||||
|
||||
Retrieve list of tables in a database
|
||||
|
||||
### Example
|
||||
|
||||
```typescript
|
||||
import {
|
||||
DatabaseManagementApi,
|
||||
Configuration
|
||||
} from './api';
|
||||
|
||||
const configuration = new Configuration();
|
||||
const apiInstance = new DatabaseManagementApi(configuration);
|
||||
|
||||
let databaseId: string; //Database ID (default to undefined)
|
||||
|
||||
const { status, data } = await apiInstance.databaseTablesDatabaseIdGet(
|
||||
databaseId
|
||||
);
|
||||
```
|
||||
|
||||
### Parameters
|
||||
|
||||
|Name | Type | Description | Notes|
|
||||
|------------- | ------------- | ------------- | -------------|
|
||||
| **databaseId** | [**string**] | Database ID | defaults to undefined|
|
||||
|
||||
|
||||
### Return type
|
||||
|
||||
**Array<string>**
|
||||
|
||||
### Authorization
|
||||
|
||||
[ApiKeyAuth](../README.md#ApiKeyAuth)
|
||||
|
||||
### HTTP request headers
|
||||
|
||||
- **Content-Type**: Not defined
|
||||
- **Accept**: application/json
|
||||
|
||||
|
||||
### HTTP response details
|
||||
| Status code | Description | Response headers |
|
||||
|-------------|-------------|------------------|
|
||||
|**200** | Tables retrieved successfully | - |
|
||||
|**401** | Unauthorized | - |
|
||||
|**404** | Database not found | - |
|
||||
|
||||
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
||||
|
||||
24
out/ts/docs/DatabaseMigrationCreatePostRequest.md
Normal file
24
out/ts/docs/DatabaseMigrationCreatePostRequest.md
Normal file
@ -0,0 +1,24 @@
|
||||
# DatabaseMigrationCreatePostRequest
|
||||
|
||||
|
||||
## Properties
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**up** | **string** | Migration up SQL | [default to undefined]
|
||||
**down** | **string** | Migration down SQL | [default to undefined]
|
||||
**databaseId** | **string** | Database ID | [default to undefined]
|
||||
|
||||
## Example
|
||||
|
||||
```typescript
|
||||
import { DatabaseMigrationCreatePostRequest } from './api';
|
||||
|
||||
const instance: DatabaseMigrationCreatePostRequest = {
|
||||
up,
|
||||
down,
|
||||
databaseId,
|
||||
};
|
||||
```
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
30
out/ts/docs/DatabaseNode.md
Normal file
30
out/ts/docs/DatabaseNode.md
Normal file
@ -0,0 +1,30 @@
|
||||
# DatabaseNode
|
||||
|
||||
|
||||
## Properties
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**id** | **string** | Unique database node identifier | [optional] [default to undefined]
|
||||
**host** | **string** | Database host | [optional] [default to undefined]
|
||||
**port** | **number** | Database port | [optional] [default to undefined]
|
||||
**username** | **string** | Database username | [optional] [default to undefined]
|
||||
**password** | **string** | Database password | [optional] [default to undefined]
|
||||
**databases** | [**Array<Database>**](Database.md) | | [optional] [default to undefined]
|
||||
|
||||
## Example
|
||||
|
||||
```typescript
|
||||
import { DatabaseNode } from './api';
|
||||
|
||||
const instance: DatabaseNode = {
|
||||
id,
|
||||
host,
|
||||
port,
|
||||
username,
|
||||
password,
|
||||
databases,
|
||||
};
|
||||
```
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
26
out/ts/docs/DatabaseNodeCreatePostRequest.md
Normal file
26
out/ts/docs/DatabaseNodeCreatePostRequest.md
Normal file
@ -0,0 +1,26 @@
|
||||
# DatabaseNodeCreatePostRequest
|
||||
|
||||
|
||||
## Properties
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**host** | **string** | Database host | [default to undefined]
|
||||
**port** | **number** | Database port | [default to undefined]
|
||||
**username** | **string** | Database username | [default to undefined]
|
||||
**password** | **string** | Database password | [default to undefined]
|
||||
|
||||
## Example
|
||||
|
||||
```typescript
|
||||
import { DatabaseNodeCreatePostRequest } from './api';
|
||||
|
||||
const instance: DatabaseNodeCreatePostRequest = {
|
||||
host,
|
||||
port,
|
||||
username,
|
||||
password,
|
||||
};
|
||||
```
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
20
out/ts/docs/DatabaseQueryDatabaseIdPostRequest.md
Normal file
20
out/ts/docs/DatabaseQueryDatabaseIdPostRequest.md
Normal file
@ -0,0 +1,20 @@
|
||||
# DatabaseQueryDatabaseIdPostRequest
|
||||
|
||||
|
||||
## Properties
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**query** | **string** | SQL query to execute | [default to undefined]
|
||||
|
||||
## Example
|
||||
|
||||
```typescript
|
||||
import { DatabaseQueryDatabaseIdPostRequest } from './api';
|
||||
|
||||
const instance: DatabaseQueryDatabaseIdPostRequest = {
|
||||
query,
|
||||
};
|
||||
```
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
22
out/ts/docs/Error.md
Normal file
22
out/ts/docs/Error.md
Normal file
@ -0,0 +1,22 @@
|
||||
# ModelError
|
||||
|
||||
|
||||
## Properties
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**error** | **string** | Error message | [optional] [default to undefined]
|
||||
**details** | **string** | Error details | [optional] [default to undefined]
|
||||
|
||||
## Example
|
||||
|
||||
```typescript
|
||||
import { ModelError } from './api';
|
||||
|
||||
const instance: ModelError = {
|
||||
error,
|
||||
details,
|
||||
};
|
||||
```
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
26
out/ts/docs/Function.md
Normal file
26
out/ts/docs/Function.md
Normal file
@ -0,0 +1,26 @@
|
||||
# Function
|
||||
|
||||
|
||||
## Properties
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**id** | **string** | Unique function identifier | [optional] [default to undefined]
|
||||
**name** | **string** | Function name | [optional] [default to undefined]
|
||||
**source** | **string** | Function source code | [optional] [default to undefined]
|
||||
**project** | [**Project**](Project.md) | | [optional] [default to undefined]
|
||||
|
||||
## Example
|
||||
|
||||
```typescript
|
||||
import { Function } from './api';
|
||||
|
||||
const instance: Function = {
|
||||
id,
|
||||
name,
|
||||
source,
|
||||
project,
|
||||
};
|
||||
```
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
116
out/ts/docs/FunctionsApi.md
Normal file
116
out/ts/docs/FunctionsApi.md
Normal file
@ -0,0 +1,116 @@
|
||||
# FunctionsApi
|
||||
|
||||
All URIs are relative to *http://localhost:3000*
|
||||
|
||||
|Method | HTTP request | Description|
|
||||
|------------- | ------------- | -------------|
|
||||
|[**functionsCreatePost**](#functionscreatepost) | **POST** /functions/create | Create function|
|
||||
|[**functionsDeletePost**](#functionsdeletepost) | **POST** /functions/delete | Delete function|
|
||||
|
||||
# **functionsCreatePost**
|
||||
> Function functionsCreatePost(functionsCreatePostRequest)
|
||||
|
||||
Create a new function in the project
|
||||
|
||||
### Example
|
||||
|
||||
```typescript
|
||||
import {
|
||||
FunctionsApi,
|
||||
Configuration,
|
||||
FunctionsCreatePostRequest
|
||||
} from './api';
|
||||
|
||||
const configuration = new Configuration();
|
||||
const apiInstance = new FunctionsApi(configuration);
|
||||
|
||||
let functionsCreatePostRequest: FunctionsCreatePostRequest; //
|
||||
|
||||
const { status, data } = await apiInstance.functionsCreatePost(
|
||||
functionsCreatePostRequest
|
||||
);
|
||||
```
|
||||
|
||||
### Parameters
|
||||
|
||||
|Name | Type | Description | Notes|
|
||||
|------------- | ------------- | ------------- | -------------|
|
||||
| **functionsCreatePostRequest** | **FunctionsCreatePostRequest**| | |
|
||||
|
||||
|
||||
### Return type
|
||||
|
||||
**Function**
|
||||
|
||||
### Authorization
|
||||
|
||||
[ApiKeyAuth](../README.md#ApiKeyAuth)
|
||||
|
||||
### HTTP request headers
|
||||
|
||||
- **Content-Type**: application/json
|
||||
- **Accept**: application/json
|
||||
|
||||
|
||||
### HTTP response details
|
||||
| Status code | Description | Response headers |
|
||||
|-------------|-------------|------------------|
|
||||
|**200** | Function created successfully | - |
|
||||
|**401** | Unauthorized | - |
|
||||
|
||||
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
||||
|
||||
# **functionsDeletePost**
|
||||
> functionsDeletePost(functionsDeletePostRequest)
|
||||
|
||||
Delete a function from the project
|
||||
|
||||
### Example
|
||||
|
||||
```typescript
|
||||
import {
|
||||
FunctionsApi,
|
||||
Configuration,
|
||||
FunctionsDeletePostRequest
|
||||
} from './api';
|
||||
|
||||
const configuration = new Configuration();
|
||||
const apiInstance = new FunctionsApi(configuration);
|
||||
|
||||
let functionsDeletePostRequest: FunctionsDeletePostRequest; //
|
||||
|
||||
const { status, data } = await apiInstance.functionsDeletePost(
|
||||
functionsDeletePostRequest
|
||||
);
|
||||
```
|
||||
|
||||
### Parameters
|
||||
|
||||
|Name | Type | Description | Notes|
|
||||
|------------- | ------------- | ------------- | -------------|
|
||||
| **functionsDeletePostRequest** | **FunctionsDeletePostRequest**| | |
|
||||
|
||||
|
||||
### Return type
|
||||
|
||||
void (empty response body)
|
||||
|
||||
### Authorization
|
||||
|
||||
[ApiKeyAuth](../README.md#ApiKeyAuth)
|
||||
|
||||
### HTTP request headers
|
||||
|
||||
- **Content-Type**: application/json
|
||||
- **Accept**: Not defined
|
||||
|
||||
|
||||
### HTTP response details
|
||||
| Status code | Description | Response headers |
|
||||
|-------------|-------------|------------------|
|
||||
|**200** | Function deleted successfully | - |
|
||||
|**401** | Unauthorized | - |
|
||||
|**404** | Function not found | - |
|
||||
|
||||
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
||||
|
||||
22
out/ts/docs/FunctionsCreatePostRequest.md
Normal file
22
out/ts/docs/FunctionsCreatePostRequest.md
Normal file
@ -0,0 +1,22 @@
|
||||
# FunctionsCreatePostRequest
|
||||
|
||||
|
||||
## Properties
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**name** | **string** | Function name | [default to undefined]
|
||||
**source** | **string** | Function source code | [default to undefined]
|
||||
|
||||
## Example
|
||||
|
||||
```typescript
|
||||
import { FunctionsCreatePostRequest } from './api';
|
||||
|
||||
const instance: FunctionsCreatePostRequest = {
|
||||
name,
|
||||
source,
|
||||
};
|
||||
```
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
20
out/ts/docs/FunctionsDeletePostRequest.md
Normal file
20
out/ts/docs/FunctionsDeletePostRequest.md
Normal file
@ -0,0 +1,20 @@
|
||||
# FunctionsDeletePostRequest
|
||||
|
||||
|
||||
## Properties
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**name** | **string** | Function name to delete | [default to undefined]
|
||||
|
||||
## Example
|
||||
|
||||
```typescript
|
||||
import { FunctionsDeletePostRequest } from './api';
|
||||
|
||||
const instance: FunctionsDeletePostRequest = {
|
||||
name,
|
||||
};
|
||||
```
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
42
out/ts/docs/Log.md
Normal file
42
out/ts/docs/Log.md
Normal file
@ -0,0 +1,42 @@
|
||||
# Log
|
||||
|
||||
|
||||
## Properties
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**id** | **string** | Unique log identifier | [optional] [default to undefined]
|
||||
**traceId** | **string** | Trace ID for tracking requests | [optional] [default to undefined]
|
||||
**startTime** | **number** | Request start timestamp | [optional] [default to undefined]
|
||||
**endTime** | **number** | Request end timestamp | [optional] [default to undefined]
|
||||
**payload** | **object** | Request payload | [optional] [default to undefined]
|
||||
**headers** | **object** | Request headers | [optional] [default to undefined]
|
||||
**cookies** | **string** | Request cookies | [optional] [default to undefined]
|
||||
**url** | **string** | Request URL | [optional] [default to undefined]
|
||||
**response** | **object** | Response data | [optional] [default to undefined]
|
||||
**content** | [**Array<LogContentInner>**](LogContentInner.md) | | [optional] [default to undefined]
|
||||
**project** | [**Project**](Project.md) | | [optional] [default to undefined]
|
||||
**query** | [**Query**](Query.md) | | [optional] [default to undefined]
|
||||
|
||||
## Example
|
||||
|
||||
```typescript
|
||||
import { Log } from './api';
|
||||
|
||||
const instance: Log = {
|
||||
id,
|
||||
traceId,
|
||||
startTime,
|
||||
endTime,
|
||||
payload,
|
||||
headers,
|
||||
cookies,
|
||||
url,
|
||||
response,
|
||||
content,
|
||||
project,
|
||||
query,
|
||||
};
|
||||
```
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
24
out/ts/docs/LogContentInner.md
Normal file
24
out/ts/docs/LogContentInner.md
Normal file
@ -0,0 +1,24 @@
|
||||
# LogContentInner
|
||||
|
||||
|
||||
## Properties
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**content** | **string** | Log content | [optional] [default to undefined]
|
||||
**type** | **string** | Log type (info, error, warning) | [optional] [default to undefined]
|
||||
**timeStamp** | **number** | Log entry timestamp | [optional] [default to undefined]
|
||||
|
||||
## Example
|
||||
|
||||
```typescript
|
||||
import { LogContentInner } from './api';
|
||||
|
||||
const instance: LogContentInner = {
|
||||
content,
|
||||
type,
|
||||
timeStamp,
|
||||
};
|
||||
```
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
30
out/ts/docs/LoggerIdFindAllPostRequest.md
Normal file
30
out/ts/docs/LoggerIdFindAllPostRequest.md
Normal file
@ -0,0 +1,30 @@
|
||||
# LoggerIdFindAllPostRequest
|
||||
|
||||
|
||||
## Properties
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**traceId** | **string** | Filter by trace ID | [optional] [default to undefined]
|
||||
**fromDate** | **string** | Filter from date | [optional] [default to undefined]
|
||||
**toDate** | **string** | Filter to date | [optional] [default to undefined]
|
||||
**url** | **string** | Filter by URL | [optional] [default to undefined]
|
||||
**limit** | **number** | Number of results to return | [default to undefined]
|
||||
**offset** | **number** | Number of results to skip | [default to undefined]
|
||||
|
||||
## Example
|
||||
|
||||
```typescript
|
||||
import { LoggerIdFindAllPostRequest } from './api';
|
||||
|
||||
const instance: LoggerIdFindAllPostRequest = {
|
||||
traceId,
|
||||
fromDate,
|
||||
toDate,
|
||||
url,
|
||||
limit,
|
||||
offset,
|
||||
};
|
||||
```
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
179
out/ts/docs/LoggingApi.md
Normal file
179
out/ts/docs/LoggingApi.md
Normal file
@ -0,0 +1,179 @@
|
||||
# LoggingApi
|
||||
|
||||
All URIs are relative to *http://localhost:3000*
|
||||
|
||||
|Method | HTTP request | Description|
|
||||
|------------- | ------------- | -------------|
|
||||
|[**loggerIdFindAllPost**](#loggeridfindallpost) | **POST** /logger/{id}/findAll | Find all logs|
|
||||
|[**loggerIdFindPost**](#loggeridfindpost) | **POST** /logger/{id}/find | Find logs for query|
|
||||
|[**loggerIdTraceIdGet**](#loggeridtraceidget) | **GET** /logger/{id}/{traceId} | Get log by trace ID|
|
||||
|
||||
# **loggerIdFindAllPost**
|
||||
> Array<Log> loggerIdFindAllPost(loggerIdFindAllPostRequest)
|
||||
|
||||
Find all logs for a project with filtering
|
||||
|
||||
### Example
|
||||
|
||||
```typescript
|
||||
import {
|
||||
LoggingApi,
|
||||
Configuration,
|
||||
LoggerIdFindAllPostRequest
|
||||
} from './api';
|
||||
|
||||
const configuration = new Configuration();
|
||||
const apiInstance = new LoggingApi(configuration);
|
||||
|
||||
let id: string; //Project ID (default to undefined)
|
||||
let loggerIdFindAllPostRequest: LoggerIdFindAllPostRequest; //
|
||||
|
||||
const { status, data } = await apiInstance.loggerIdFindAllPost(
|
||||
id,
|
||||
loggerIdFindAllPostRequest
|
||||
);
|
||||
```
|
||||
|
||||
### Parameters
|
||||
|
||||
|Name | Type | Description | Notes|
|
||||
|------------- | ------------- | ------------- | -------------|
|
||||
| **loggerIdFindAllPostRequest** | **LoggerIdFindAllPostRequest**| | |
|
||||
| **id** | [**string**] | Project ID | defaults to undefined|
|
||||
|
||||
|
||||
### Return type
|
||||
|
||||
**Array<Log>**
|
||||
|
||||
### Authorization
|
||||
|
||||
[ApiKeyAuth](../README.md#ApiKeyAuth)
|
||||
|
||||
### HTTP request headers
|
||||
|
||||
- **Content-Type**: application/json
|
||||
- **Accept**: application/json
|
||||
|
||||
|
||||
### HTTP response details
|
||||
| Status code | Description | Response headers |
|
||||
|-------------|-------------|------------------|
|
||||
|**200** | Logs retrieved successfully | - |
|
||||
|**401** | Unauthorized | - |
|
||||
|
||||
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
||||
|
||||
# **loggerIdFindPost**
|
||||
> Array<Log> loggerIdFindPost(loggerIdFindAllPostRequest)
|
||||
|
||||
Find logs for a specific query with filtering
|
||||
|
||||
### Example
|
||||
|
||||
```typescript
|
||||
import {
|
||||
LoggingApi,
|
||||
Configuration,
|
||||
LoggerIdFindAllPostRequest
|
||||
} from './api';
|
||||
|
||||
const configuration = new Configuration();
|
||||
const apiInstance = new LoggingApi(configuration);
|
||||
|
||||
let id: string; //Query ID (default to undefined)
|
||||
let loggerIdFindAllPostRequest: LoggerIdFindAllPostRequest; //
|
||||
|
||||
const { status, data } = await apiInstance.loggerIdFindPost(
|
||||
id,
|
||||
loggerIdFindAllPostRequest
|
||||
);
|
||||
```
|
||||
|
||||
### Parameters
|
||||
|
||||
|Name | Type | Description | Notes|
|
||||
|------------- | ------------- | ------------- | -------------|
|
||||
| **loggerIdFindAllPostRequest** | **LoggerIdFindAllPostRequest**| | |
|
||||
| **id** | [**string**] | Query ID | defaults to undefined|
|
||||
|
||||
|
||||
### Return type
|
||||
|
||||
**Array<Log>**
|
||||
|
||||
### Authorization
|
||||
|
||||
[QueryGuard](../README.md#QueryGuard), [ApiKeyAuth](../README.md#ApiKeyAuth)
|
||||
|
||||
### HTTP request headers
|
||||
|
||||
- **Content-Type**: application/json
|
||||
- **Accept**: application/json
|
||||
|
||||
|
||||
### HTTP response details
|
||||
| Status code | Description | Response headers |
|
||||
|-------------|-------------|------------------|
|
||||
|**200** | Logs retrieved successfully | - |
|
||||
|**401** | Unauthorized | - |
|
||||
|**403** | Query access required | - |
|
||||
|
||||
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
||||
|
||||
# **loggerIdTraceIdGet**
|
||||
> Log loggerIdTraceIdGet()
|
||||
|
||||
Retrieve log entries by trace ID
|
||||
|
||||
### Example
|
||||
|
||||
```typescript
|
||||
import {
|
||||
LoggingApi,
|
||||
Configuration
|
||||
} from './api';
|
||||
|
||||
const configuration = new Configuration();
|
||||
const apiInstance = new LoggingApi(configuration);
|
||||
|
||||
let id: string; //Log ID (default to undefined)
|
||||
let traceId: string; //Trace ID (default to undefined)
|
||||
|
||||
const { status, data } = await apiInstance.loggerIdTraceIdGet(
|
||||
id,
|
||||
traceId
|
||||
);
|
||||
```
|
||||
|
||||
### Parameters
|
||||
|
||||
|Name | Type | Description | Notes|
|
||||
|------------- | ------------- | ------------- | -------------|
|
||||
| **id** | [**string**] | Log ID | defaults to undefined|
|
||||
| **traceId** | [**string**] | Trace ID | defaults to undefined|
|
||||
|
||||
|
||||
### Return type
|
||||
|
||||
**Log**
|
||||
|
||||
### Authorization
|
||||
|
||||
[ApiKeyAuth](../README.md#ApiKeyAuth)
|
||||
|
||||
### HTTP request headers
|
||||
|
||||
- **Content-Type**: Not defined
|
||||
- **Accept**: application/json
|
||||
|
||||
|
||||
### HTTP response details
|
||||
| Status code | Description | Response headers |
|
||||
|-------------|-------------|------------------|
|
||||
|**200** | Log retrieved successfully | - |
|
||||
|**401** | Unauthorized | - |
|
||||
|**404** | Log not found | - |
|
||||
|
||||
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
||||
|
||||
26
out/ts/docs/Migration.md
Normal file
26
out/ts/docs/Migration.md
Normal file
@ -0,0 +1,26 @@
|
||||
# Migration
|
||||
|
||||
|
||||
## Properties
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**id** | **string** | Unique migration identifier | [optional] [default to undefined]
|
||||
**up** | **string** | Migration up SQL | [optional] [default to undefined]
|
||||
**down** | **string** | Migration down SQL | [optional] [default to undefined]
|
||||
**database** | [**Database**](Database.md) | | [optional] [default to undefined]
|
||||
|
||||
## Example
|
||||
|
||||
```typescript
|
||||
import { Migration } from './api';
|
||||
|
||||
const instance: Migration = {
|
||||
id,
|
||||
up,
|
||||
down,
|
||||
database,
|
||||
};
|
||||
```
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
32
out/ts/docs/Project.md
Normal file
32
out/ts/docs/Project.md
Normal file
@ -0,0 +1,32 @@
|
||||
# Project
|
||||
|
||||
|
||||
## Properties
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**id** | **string** | Unique project identifier | [optional] [default to undefined]
|
||||
**name** | **string** | Project name | [optional] [default to undefined]
|
||||
**apiTokens** | [**Array<Token>**](Token.md) | | [optional] [default to undefined]
|
||||
**database** | [**Database**](Database.md) | | [optional] [default to undefined]
|
||||
**queries** | [**Array<Query>**](Query.md) | | [optional] [default to undefined]
|
||||
**functions** | [**Array<Function>**](Function.md) | | [optional] [default to undefined]
|
||||
**settings** | [**Array<ProjectSetting>**](ProjectSetting.md) | | [optional] [default to undefined]
|
||||
|
||||
## Example
|
||||
|
||||
```typescript
|
||||
import { Project } from './api';
|
||||
|
||||
const instance: Project = {
|
||||
id,
|
||||
name,
|
||||
apiTokens,
|
||||
database,
|
||||
queries,
|
||||
functions,
|
||||
settings,
|
||||
};
|
||||
```
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
20
out/ts/docs/ProjectCreatePutRequest.md
Normal file
20
out/ts/docs/ProjectCreatePutRequest.md
Normal file
@ -0,0 +1,20 @@
|
||||
# ProjectCreatePutRequest
|
||||
|
||||
|
||||
## Properties
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**name** | **string** | Project name | [default to undefined]
|
||||
|
||||
## Example
|
||||
|
||||
```typescript
|
||||
import { ProjectCreatePutRequest } from './api';
|
||||
|
||||
const instance: ProjectCreatePutRequest = {
|
||||
name,
|
||||
};
|
||||
```
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
317
out/ts/docs/ProjectManagementApi.md
Normal file
317
out/ts/docs/ProjectManagementApi.md
Normal file
@ -0,0 +1,317 @@
|
||||
# ProjectManagementApi
|
||||
|
||||
All URIs are relative to *http://localhost:3000*
|
||||
|
||||
|Method | HTTP request | Description|
|
||||
|------------- | ------------- | -------------|
|
||||
|[**projectApiTokensGet**](#projectapitokensget) | **GET** /project/api-tokens | Get all API tokens|
|
||||
|[**projectCreatePut**](#projectcreateput) | **PUT** /project/create | Create project|
|
||||
|[**projectCreateWithoutDbPut**](#projectcreatewithoutdbput) | **PUT** /project/create-without-db | Create project without database|
|
||||
|[**projectSettingsCreatePut**](#projectsettingscreateput) | **PUT** /project/settings/create | Create project setting|
|
||||
|[**projectSettingsDeleteKeyDelete**](#projectsettingsdeletekeydelete) | **DELETE** /project/settings/delete/{key} | Delete project setting|
|
||||
|[**projectSettingsGet**](#projectsettingsget) | **GET** /project/settings | Get all project settings|
|
||||
|
||||
# **projectApiTokensGet**
|
||||
> Array<Token> projectApiTokensGet()
|
||||
|
||||
Retrieve all API tokens for the current project
|
||||
|
||||
### Example
|
||||
|
||||
```typescript
|
||||
import {
|
||||
ProjectManagementApi,
|
||||
Configuration
|
||||
} from './api';
|
||||
|
||||
const configuration = new Configuration();
|
||||
const apiInstance = new ProjectManagementApi(configuration);
|
||||
|
||||
const { status, data } = await apiInstance.projectApiTokensGet();
|
||||
```
|
||||
|
||||
### Parameters
|
||||
This endpoint does not have any parameters.
|
||||
|
||||
|
||||
### Return type
|
||||
|
||||
**Array<Token>**
|
||||
|
||||
### Authorization
|
||||
|
||||
[AdminAuth](../README.md#AdminAuth), [ApiKeyAuth](../README.md#ApiKeyAuth)
|
||||
|
||||
### HTTP request headers
|
||||
|
||||
- **Content-Type**: Not defined
|
||||
- **Accept**: application/json
|
||||
|
||||
|
||||
### HTTP response details
|
||||
| Status code | Description | Response headers |
|
||||
|-------------|-------------|------------------|
|
||||
|**200** | API tokens retrieved successfully | - |
|
||||
|**401** | Unauthorized | - |
|
||||
|**403** | Admin access required | - |
|
||||
|
||||
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
||||
|
||||
# **projectCreatePut**
|
||||
> Project projectCreatePut(projectCreatePutRequest)
|
||||
|
||||
Create a new project with database
|
||||
|
||||
### Example
|
||||
|
||||
```typescript
|
||||
import {
|
||||
ProjectManagementApi,
|
||||
Configuration,
|
||||
ProjectCreatePutRequest
|
||||
} from './api';
|
||||
|
||||
const configuration = new Configuration();
|
||||
const apiInstance = new ProjectManagementApi(configuration);
|
||||
|
||||
let projectCreatePutRequest: ProjectCreatePutRequest; //
|
||||
|
||||
const { status, data } = await apiInstance.projectCreatePut(
|
||||
projectCreatePutRequest
|
||||
);
|
||||
```
|
||||
|
||||
### Parameters
|
||||
|
||||
|Name | Type | Description | Notes|
|
||||
|------------- | ------------- | ------------- | -------------|
|
||||
| **projectCreatePutRequest** | **ProjectCreatePutRequest**| | |
|
||||
|
||||
|
||||
### Return type
|
||||
|
||||
**Project**
|
||||
|
||||
### Authorization
|
||||
|
||||
[ApiKeyAuth](../README.md#ApiKeyAuth)
|
||||
|
||||
### HTTP request headers
|
||||
|
||||
- **Content-Type**: application/json
|
||||
- **Accept**: application/json
|
||||
|
||||
|
||||
### HTTP response details
|
||||
| Status code | Description | Response headers |
|
||||
|-------------|-------------|------------------|
|
||||
|**200** | Project created successfully | - |
|
||||
|**401** | Unauthorized | - |
|
||||
|
||||
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
||||
|
||||
# **projectCreateWithoutDbPut**
|
||||
> Project projectCreateWithoutDbPut(projectCreatePutRequest)
|
||||
|
||||
Create a new project without creating a database
|
||||
|
||||
### Example
|
||||
|
||||
```typescript
|
||||
import {
|
||||
ProjectManagementApi,
|
||||
Configuration,
|
||||
ProjectCreatePutRequest
|
||||
} from './api';
|
||||
|
||||
const configuration = new Configuration();
|
||||
const apiInstance = new ProjectManagementApi(configuration);
|
||||
|
||||
let projectCreatePutRequest: ProjectCreatePutRequest; //
|
||||
|
||||
const { status, data } = await apiInstance.projectCreateWithoutDbPut(
|
||||
projectCreatePutRequest
|
||||
);
|
||||
```
|
||||
|
||||
### Parameters
|
||||
|
||||
|Name | Type | Description | Notes|
|
||||
|------------- | ------------- | ------------- | -------------|
|
||||
| **projectCreatePutRequest** | **ProjectCreatePutRequest**| | |
|
||||
|
||||
|
||||
### Return type
|
||||
|
||||
**Project**
|
||||
|
||||
### Authorization
|
||||
|
||||
[AdminAuth](../README.md#AdminAuth), [ApiKeyAuth](../README.md#ApiKeyAuth)
|
||||
|
||||
### HTTP request headers
|
||||
|
||||
- **Content-Type**: application/json
|
||||
- **Accept**: application/json
|
||||
|
||||
|
||||
### HTTP response details
|
||||
| Status code | Description | Response headers |
|
||||
|-------------|-------------|------------------|
|
||||
|**200** | Project created successfully | - |
|
||||
|**401** | Unauthorized | - |
|
||||
|**403** | Admin access required | - |
|
||||
|
||||
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
||||
|
||||
# **projectSettingsCreatePut**
|
||||
> ProjectSetting projectSettingsCreatePut(projectSettingsCreatePutRequest)
|
||||
|
||||
Create a new project setting
|
||||
|
||||
### Example
|
||||
|
||||
```typescript
|
||||
import {
|
||||
ProjectManagementApi,
|
||||
Configuration,
|
||||
ProjectSettingsCreatePutRequest
|
||||
} from './api';
|
||||
|
||||
const configuration = new Configuration();
|
||||
const apiInstance = new ProjectManagementApi(configuration);
|
||||
|
||||
let projectSettingsCreatePutRequest: ProjectSettingsCreatePutRequest; //
|
||||
|
||||
const { status, data } = await apiInstance.projectSettingsCreatePut(
|
||||
projectSettingsCreatePutRequest
|
||||
);
|
||||
```
|
||||
|
||||
### Parameters
|
||||
|
||||
|Name | Type | Description | Notes|
|
||||
|------------- | ------------- | ------------- | -------------|
|
||||
| **projectSettingsCreatePutRequest** | **ProjectSettingsCreatePutRequest**| | |
|
||||
|
||||
|
||||
### Return type
|
||||
|
||||
**ProjectSetting**
|
||||
|
||||
### Authorization
|
||||
|
||||
[ApiKeyAuth](../README.md#ApiKeyAuth)
|
||||
|
||||
### HTTP request headers
|
||||
|
||||
- **Content-Type**: application/json
|
||||
- **Accept**: application/json
|
||||
|
||||
|
||||
### HTTP response details
|
||||
| Status code | Description | Response headers |
|
||||
|-------------|-------------|------------------|
|
||||
|**200** | Setting created successfully | - |
|
||||
|**401** | Unauthorized | - |
|
||||
|
||||
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
||||
|
||||
# **projectSettingsDeleteKeyDelete**
|
||||
> projectSettingsDeleteKeyDelete()
|
||||
|
||||
Delete a project setting by key
|
||||
|
||||
### Example
|
||||
|
||||
```typescript
|
||||
import {
|
||||
ProjectManagementApi,
|
||||
Configuration
|
||||
} from './api';
|
||||
|
||||
const configuration = new Configuration();
|
||||
const apiInstance = new ProjectManagementApi(configuration);
|
||||
|
||||
let key: string; //Setting key to delete (default to undefined)
|
||||
|
||||
const { status, data } = await apiInstance.projectSettingsDeleteKeyDelete(
|
||||
key
|
||||
);
|
||||
```
|
||||
|
||||
### Parameters
|
||||
|
||||
|Name | Type | Description | Notes|
|
||||
|------------- | ------------- | ------------- | -------------|
|
||||
| **key** | [**string**] | Setting key to delete | defaults to undefined|
|
||||
|
||||
|
||||
### Return type
|
||||
|
||||
void (empty response body)
|
||||
|
||||
### Authorization
|
||||
|
||||
[ApiKeyAuth](../README.md#ApiKeyAuth)
|
||||
|
||||
### HTTP request headers
|
||||
|
||||
- **Content-Type**: Not defined
|
||||
- **Accept**: Not defined
|
||||
|
||||
|
||||
### HTTP response details
|
||||
| Status code | Description | Response headers |
|
||||
|-------------|-------------|------------------|
|
||||
|**200** | Setting deleted successfully | - |
|
||||
|**401** | Unauthorized | - |
|
||||
|**404** | Setting not found | - |
|
||||
|
||||
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
||||
|
||||
# **projectSettingsGet**
|
||||
> Array<ProjectSetting> projectSettingsGet()
|
||||
|
||||
Retrieve all settings for the current project
|
||||
|
||||
### Example
|
||||
|
||||
```typescript
|
||||
import {
|
||||
ProjectManagementApi,
|
||||
Configuration
|
||||
} from './api';
|
||||
|
||||
const configuration = new Configuration();
|
||||
const apiInstance = new ProjectManagementApi(configuration);
|
||||
|
||||
const { status, data } = await apiInstance.projectSettingsGet();
|
||||
```
|
||||
|
||||
### Parameters
|
||||
This endpoint does not have any parameters.
|
||||
|
||||
|
||||
### Return type
|
||||
|
||||
**Array<ProjectSetting>**
|
||||
|
||||
### Authorization
|
||||
|
||||
[ApiKeyAuth](../README.md#ApiKeyAuth)
|
||||
|
||||
### HTTP request headers
|
||||
|
||||
- **Content-Type**: Not defined
|
||||
- **Accept**: application/json
|
||||
|
||||
|
||||
### HTTP response details
|
||||
| Status code | Description | Response headers |
|
||||
|-------------|-------------|------------------|
|
||||
|**200** | Settings retrieved successfully | - |
|
||||
|**401** | Unauthorized | - |
|
||||
|
||||
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
||||
|
||||
26
out/ts/docs/ProjectSetting.md
Normal file
26
out/ts/docs/ProjectSetting.md
Normal file
@ -0,0 +1,26 @@
|
||||
# ProjectSetting
|
||||
|
||||
|
||||
## Properties
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**id** | **string** | Unique setting identifier | [optional] [default to undefined]
|
||||
**key** | **string** | Setting key | [optional] [default to undefined]
|
||||
**value** | **string** | Setting value | [optional] [default to undefined]
|
||||
**project** | [**Project**](Project.md) | | [optional] [default to undefined]
|
||||
|
||||
## Example
|
||||
|
||||
```typescript
|
||||
import { ProjectSetting } from './api';
|
||||
|
||||
const instance: ProjectSetting = {
|
||||
id,
|
||||
key,
|
||||
value,
|
||||
project,
|
||||
};
|
||||
```
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
22
out/ts/docs/ProjectSettingsCreatePutRequest.md
Normal file
22
out/ts/docs/ProjectSettingsCreatePutRequest.md
Normal file
@ -0,0 +1,22 @@
|
||||
# ProjectSettingsCreatePutRequest
|
||||
|
||||
|
||||
## Properties
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**key** | **string** | Setting key | [default to undefined]
|
||||
**value** | **string** | Setting value | [default to undefined]
|
||||
|
||||
## Example
|
||||
|
||||
```typescript
|
||||
import { ProjectSettingsCreatePutRequest } from './api';
|
||||
|
||||
const instance: ProjectSettingsCreatePutRequest = {
|
||||
key,
|
||||
value,
|
||||
};
|
||||
```
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
238
out/ts/docs/QueriesApi.md
Normal file
238
out/ts/docs/QueriesApi.md
Normal file
@ -0,0 +1,238 @@
|
||||
# QueriesApi
|
||||
|
||||
All URIs are relative to *http://localhost:3000*
|
||||
|
||||
|Method | HTTP request | Description|
|
||||
|------------- | ------------- | -------------|
|
||||
|[**queryCreatePost**](#querycreatepost) | **POST** /query/create | Create query|
|
||||
|[**queryDeleteIdDelete**](#querydeleteiddelete) | **DELETE** /query/delete/{id} | Delete query|
|
||||
|[**queryRunIdPost**](#queryrunidpost) | **POST** /query/run/{id} | Run query|
|
||||
|[**queryUpdateIdPost**](#queryupdateidpost) | **POST** /query/update/{id} | Update query|
|
||||
|
||||
# **queryCreatePost**
|
||||
> Query queryCreatePost(queryCreatePostRequest)
|
||||
|
||||
Create a new query in the project
|
||||
|
||||
### Example
|
||||
|
||||
```typescript
|
||||
import {
|
||||
QueriesApi,
|
||||
Configuration,
|
||||
QueryCreatePostRequest
|
||||
} from './api';
|
||||
|
||||
const configuration = new Configuration();
|
||||
const apiInstance = new QueriesApi(configuration);
|
||||
|
||||
let queryCreatePostRequest: QueryCreatePostRequest; //
|
||||
|
||||
const { status, data } = await apiInstance.queryCreatePost(
|
||||
queryCreatePostRequest
|
||||
);
|
||||
```
|
||||
|
||||
### Parameters
|
||||
|
||||
|Name | Type | Description | Notes|
|
||||
|------------- | ------------- | ------------- | -------------|
|
||||
| **queryCreatePostRequest** | **QueryCreatePostRequest**| | |
|
||||
|
||||
|
||||
### Return type
|
||||
|
||||
**Query**
|
||||
|
||||
### Authorization
|
||||
|
||||
[ApiKeyAuth](../README.md#ApiKeyAuth)
|
||||
|
||||
### HTTP request headers
|
||||
|
||||
- **Content-Type**: application/json
|
||||
- **Accept**: application/json
|
||||
|
||||
|
||||
### HTTP response details
|
||||
| Status code | Description | Response headers |
|
||||
|-------------|-------------|------------------|
|
||||
|**200** | Query created successfully | - |
|
||||
|**401** | Unauthorized | - |
|
||||
|
||||
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
||||
|
||||
# **queryDeleteIdDelete**
|
||||
> queryDeleteIdDelete()
|
||||
|
||||
Delete an existing query
|
||||
|
||||
### Example
|
||||
|
||||
```typescript
|
||||
import {
|
||||
QueriesApi,
|
||||
Configuration
|
||||
} from './api';
|
||||
|
||||
const configuration = new Configuration();
|
||||
const apiInstance = new QueriesApi(configuration);
|
||||
|
||||
let id: string; //Query ID (default to undefined)
|
||||
|
||||
const { status, data } = await apiInstance.queryDeleteIdDelete(
|
||||
id
|
||||
);
|
||||
```
|
||||
|
||||
### Parameters
|
||||
|
||||
|Name | Type | Description | Notes|
|
||||
|------------- | ------------- | ------------- | -------------|
|
||||
| **id** | [**string**] | Query ID | defaults to undefined|
|
||||
|
||||
|
||||
### Return type
|
||||
|
||||
void (empty response body)
|
||||
|
||||
### Authorization
|
||||
|
||||
[QueryGuard](../README.md#QueryGuard), [ApiKeyAuth](../README.md#ApiKeyAuth)
|
||||
|
||||
### HTTP request headers
|
||||
|
||||
- **Content-Type**: Not defined
|
||||
- **Accept**: Not defined
|
||||
|
||||
|
||||
### HTTP response details
|
||||
| Status code | Description | Response headers |
|
||||
|-------------|-------------|------------------|
|
||||
|**200** | Query deleted successfully | - |
|
||||
|**401** | Unauthorized | - |
|
||||
|**403** | Query access required | - |
|
||||
|**404** | Query not found | - |
|
||||
|
||||
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
||||
|
||||
# **queryRunIdPost**
|
||||
> object queryRunIdPost(body)
|
||||
|
||||
Execute a query with provided data
|
||||
|
||||
### Example
|
||||
|
||||
```typescript
|
||||
import {
|
||||
QueriesApi,
|
||||
Configuration
|
||||
} from './api';
|
||||
|
||||
const configuration = new Configuration();
|
||||
const apiInstance = new QueriesApi(configuration);
|
||||
|
||||
let id: string; //Query ID (default to undefined)
|
||||
let body: object; //
|
||||
let xTraceId: string; //Trace ID for logging (optional) (default to undefined)
|
||||
|
||||
const { status, data } = await apiInstance.queryRunIdPost(
|
||||
id,
|
||||
body,
|
||||
xTraceId
|
||||
);
|
||||
```
|
||||
|
||||
### Parameters
|
||||
|
||||
|Name | Type | Description | Notes|
|
||||
|------------- | ------------- | ------------- | -------------|
|
||||
| **body** | **object**| | |
|
||||
| **id** | [**string**] | Query ID | defaults to undefined|
|
||||
| **xTraceId** | [**string**] | Trace ID for logging | (optional) defaults to undefined|
|
||||
|
||||
|
||||
### Return type
|
||||
|
||||
**object**
|
||||
|
||||
### Authorization
|
||||
|
||||
[QueryGuard](../README.md#QueryGuard), [ApiKeyAuth](../README.md#ApiKeyAuth)
|
||||
|
||||
### HTTP request headers
|
||||
|
||||
- **Content-Type**: application/json
|
||||
- **Accept**: application/json
|
||||
|
||||
|
||||
### HTTP response details
|
||||
| Status code | Description | Response headers |
|
||||
|-------------|-------------|------------------|
|
||||
|**200** | Query executed successfully | - |
|
||||
|**302** | Redirect response | - |
|
||||
|**401** | Unauthorized | - |
|
||||
|**403** | Query access required | - |
|
||||
|**404** | Query not found | - |
|
||||
|**500** | Internal Server Error | - |
|
||||
|
||||
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
||||
|
||||
# **queryUpdateIdPost**
|
||||
> Query queryUpdateIdPost(queryUpdateIdPostRequest)
|
||||
|
||||
Update an existing query
|
||||
|
||||
### Example
|
||||
|
||||
```typescript
|
||||
import {
|
||||
QueriesApi,
|
||||
Configuration,
|
||||
QueryUpdateIdPostRequest
|
||||
} from './api';
|
||||
|
||||
const configuration = new Configuration();
|
||||
const apiInstance = new QueriesApi(configuration);
|
||||
|
||||
let id: string; //Query ID (default to undefined)
|
||||
let queryUpdateIdPostRequest: QueryUpdateIdPostRequest; //
|
||||
|
||||
const { status, data } = await apiInstance.queryUpdateIdPost(
|
||||
id,
|
||||
queryUpdateIdPostRequest
|
||||
);
|
||||
```
|
||||
|
||||
### Parameters
|
||||
|
||||
|Name | Type | Description | Notes|
|
||||
|------------- | ------------- | ------------- | -------------|
|
||||
| **queryUpdateIdPostRequest** | **QueryUpdateIdPostRequest**| | |
|
||||
| **id** | [**string**] | Query ID | defaults to undefined|
|
||||
|
||||
|
||||
### Return type
|
||||
|
||||
**Query**
|
||||
|
||||
### Authorization
|
||||
|
||||
[QueryGuard](../README.md#QueryGuard), [ApiKeyAuth](../README.md#ApiKeyAuth)
|
||||
|
||||
### HTTP request headers
|
||||
|
||||
- **Content-Type**: application/json
|
||||
- **Accept**: application/json
|
||||
|
||||
|
||||
### HTTP response details
|
||||
| Status code | Description | Response headers |
|
||||
|-------------|-------------|------------------|
|
||||
|**200** | Query updated successfully | - |
|
||||
|**401** | Unauthorized | - |
|
||||
|**403** | Query access required | - |
|
||||
|**404** | Query not found | - |
|
||||
|
||||
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
||||
|
||||
30
out/ts/docs/Query.md
Normal file
30
out/ts/docs/Query.md
Normal file
@ -0,0 +1,30 @@
|
||||
# Query
|
||||
|
||||
|
||||
## Properties
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**id** | **string** | Unique query identifier | [optional] [default to undefined]
|
||||
**source** | **string** | Query source code | [optional] [default to undefined]
|
||||
**isActive** | **number** | Whether the query is active (1 = active, 0 = inactive) | [optional] [default to undefined]
|
||||
**isCommand** | **number** | Whether this is a command (1 = command, 0 = query) | [optional] [default to undefined]
|
||||
**project** | [**Project**](Project.md) | | [optional] [default to undefined]
|
||||
**logs** | [**Array<Log>**](Log.md) | | [optional] [default to undefined]
|
||||
|
||||
## Example
|
||||
|
||||
```typescript
|
||||
import { Query } from './api';
|
||||
|
||||
const instance: Query = {
|
||||
id,
|
||||
source,
|
||||
isActive,
|
||||
isCommand,
|
||||
project,
|
||||
logs,
|
||||
};
|
||||
```
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
20
out/ts/docs/QueryCreatePostRequest.md
Normal file
20
out/ts/docs/QueryCreatePostRequest.md
Normal file
@ -0,0 +1,20 @@
|
||||
# QueryCreatePostRequest
|
||||
|
||||
|
||||
## Properties
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**source** | **string** | Query source code | [default to undefined]
|
||||
|
||||
## Example
|
||||
|
||||
```typescript
|
||||
import { QueryCreatePostRequest } from './api';
|
||||
|
||||
const instance: QueryCreatePostRequest = {
|
||||
source,
|
||||
};
|
||||
```
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
20
out/ts/docs/QueryUpdateIdPostRequest.md
Normal file
20
out/ts/docs/QueryUpdateIdPostRequest.md
Normal file
@ -0,0 +1,20 @@
|
||||
# QueryUpdateIdPostRequest
|
||||
|
||||
|
||||
## Properties
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**source** | **string** | Updated query source code | [optional] [default to undefined]
|
||||
|
||||
## Example
|
||||
|
||||
```typescript
|
||||
import { QueryUpdateIdPostRequest } from './api';
|
||||
|
||||
const instance: QueryUpdateIdPostRequest = {
|
||||
source,
|
||||
};
|
||||
```
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
62
out/ts/docs/RedisManagementApi.md
Normal file
62
out/ts/docs/RedisManagementApi.md
Normal file
@ -0,0 +1,62 @@
|
||||
# RedisManagementApi
|
||||
|
||||
All URIs are relative to *http://localhost:3000*
|
||||
|
||||
|Method | HTTP request | Description|
|
||||
|------------- | ------------- | -------------|
|
||||
|[**redisNodeCreatePost**](#redisnodecreatepost) | **POST** /redis/node/create | Add Redis node|
|
||||
|
||||
# **redisNodeCreatePost**
|
||||
> RedisNode redisNodeCreatePost(redisNodeCreatePostRequest)
|
||||
|
||||
Add a new Redis node to the system
|
||||
|
||||
### Example
|
||||
|
||||
```typescript
|
||||
import {
|
||||
RedisManagementApi,
|
||||
Configuration,
|
||||
RedisNodeCreatePostRequest
|
||||
} from './api';
|
||||
|
||||
const configuration = new Configuration();
|
||||
const apiInstance = new RedisManagementApi(configuration);
|
||||
|
||||
let redisNodeCreatePostRequest: RedisNodeCreatePostRequest; //
|
||||
|
||||
const { status, data } = await apiInstance.redisNodeCreatePost(
|
||||
redisNodeCreatePostRequest
|
||||
);
|
||||
```
|
||||
|
||||
### Parameters
|
||||
|
||||
|Name | Type | Description | Notes|
|
||||
|------------- | ------------- | ------------- | -------------|
|
||||
| **redisNodeCreatePostRequest** | **RedisNodeCreatePostRequest**| | |
|
||||
|
||||
|
||||
### Return type
|
||||
|
||||
**RedisNode**
|
||||
|
||||
### Authorization
|
||||
|
||||
[AdminAuth](../README.md#AdminAuth), [ApiKeyAuth](../README.md#ApiKeyAuth)
|
||||
|
||||
### HTTP request headers
|
||||
|
||||
- **Content-Type**: application/json
|
||||
- **Accept**: application/json
|
||||
|
||||
|
||||
### HTTP response details
|
||||
| Status code | Description | Response headers |
|
||||
|-------------|-------------|------------------|
|
||||
|**200** | Redis node created successfully | - |
|
||||
|**401** | Unauthorized | - |
|
||||
|**403** | Admin access required | - |
|
||||
|
||||
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
||||
|
||||
30
out/ts/docs/RedisNode.md
Normal file
30
out/ts/docs/RedisNode.md
Normal file
@ -0,0 +1,30 @@
|
||||
# RedisNode
|
||||
|
||||
|
||||
## Properties
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**id** | **string** | Unique Redis node identifier | [optional] [default to undefined]
|
||||
**host** | **string** | Redis host | [optional] [default to undefined]
|
||||
**port** | **number** | Redis port | [optional] [default to undefined]
|
||||
**user** | **string** | Redis username | [optional] [default to undefined]
|
||||
**password** | **string** | Redis password | [optional] [default to undefined]
|
||||
**projects** | [**Array<Project>**](Project.md) | | [optional] [default to undefined]
|
||||
|
||||
## Example
|
||||
|
||||
```typescript
|
||||
import { RedisNode } from './api';
|
||||
|
||||
const instance: RedisNode = {
|
||||
id,
|
||||
host,
|
||||
port,
|
||||
user,
|
||||
password,
|
||||
projects,
|
||||
};
|
||||
```
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
26
out/ts/docs/RedisNodeCreatePostRequest.md
Normal file
26
out/ts/docs/RedisNodeCreatePostRequest.md
Normal file
@ -0,0 +1,26 @@
|
||||
# RedisNodeCreatePostRequest
|
||||
|
||||
|
||||
## Properties
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**host** | **string** | Redis host | [default to undefined]
|
||||
**port** | **number** | Redis port | [default to undefined]
|
||||
**user** | **string** | Redis username | [default to undefined]
|
||||
**password** | **string** | Redis password | [default to undefined]
|
||||
|
||||
## Example
|
||||
|
||||
```typescript
|
||||
import { RedisNodeCreatePostRequest } from './api';
|
||||
|
||||
const instance: RedisNodeCreatePostRequest = {
|
||||
host,
|
||||
port,
|
||||
user,
|
||||
password,
|
||||
};
|
||||
```
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
26
out/ts/docs/Token.md
Normal file
26
out/ts/docs/Token.md
Normal file
@ -0,0 +1,26 @@
|
||||
# Token
|
||||
|
||||
|
||||
## Properties
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**token** | **string** | Unique token identifier | [optional] [default to undefined]
|
||||
**isActive** | **boolean** | Whether the token is active | [optional] [default to undefined]
|
||||
**isAdmin** | **boolean** | Whether the token has admin privileges | [optional] [default to undefined]
|
||||
**project** | [**Project**](Project.md) | | [optional] [default to undefined]
|
||||
|
||||
## Example
|
||||
|
||||
```typescript
|
||||
import { Token } from './api';
|
||||
|
||||
const instance: Token = {
|
||||
token,
|
||||
isActive,
|
||||
isAdmin,
|
||||
project,
|
||||
};
|
||||
```
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
Reference in New Issue
Block a user