From 7b1fb5f52b636eb7757d3df46aa1df56814e742b Mon Sep 17 00:00:00 2001 From: Sentio Bot Date: Fri, 29 Nov 2024 10:07:43 +0000 Subject: [PATCH] chore: update --- doc/index.html | 1007 ----------------- openapi.json | 126 --- src/DefaultApi.md | 237 ---- src/apis/DefaultApi.ts | 192 ---- src/index.ts | 2 +- ...ServiceAnalyticServiceRerunSQLQueryBody.ts | 61 - .../AnalyticServiceRerunSQLQueryRequest.ts | 75 -- .../AnalyticServiceRerunSQLQueryResponse.ts | 47 - src/models/ObjectSerializer.ts | 9 - src/models/all.ts | 3 - src/types/ObjectParamAPI.ts | 79 -- src/types/ObservableAPI.ts | 87 -- src/types/PromiseAPI.ts | 62 - 13 files changed, 1 insertion(+), 1986 deletions(-) delete mode 100755 src/DefaultApi.md delete mode 100755 src/apis/DefaultApi.ts delete mode 100755 src/models/AnalyticServiceAnalyticServiceRerunSQLQueryBody.ts delete mode 100755 src/models/AnalyticServiceRerunSQLQueryRequest.ts delete mode 100755 src/models/AnalyticServiceRerunSQLQueryResponse.ts diff --git a/doc/index.html b/doc/index.html index f982a15..7ef98a5 100755 --- a/doc/index.html +++ b/doc/index.html @@ -1283,27 +1283,6 @@ "sql" : "SELECT uniq(distinct_id) FROM `Transfer`" } } -}; - defs["analytic_service.AnalyticService.RerunSQLQueryBody"] = { - "type" : "object", - "properties" : { - "projectId" : { - "title" : "use project id if project_owner and project_slug are not provided", - "type" : "string" - }, - "version" : { - "title" : "version of the datasource, default to the active version if not provided", - "type" : "integer", - "format" : "int32" - }, - "queryId" : { - "type" : "string" - }, - "sqlQuery" : { - "$ref" : "#/components/schemas/analytic_service.SQLQuery" - } - }, - "description" : "Deprecated: will drop in the future." }; defs["analytic_service.AnalyticService.SaveSQLBody"] = { "type" : "object", @@ -1441,48 +1420,6 @@ "$ref" : "#/components/schemas/analytic_service.ExecutionInfo" } } -}; - defs["analytic_service.RerunSQLQueryRequest"] = { - "type" : "object", - "properties" : { - "projectOwner" : { - "title" : "username or organization name", - "type" : "string" - }, - "projectSlug" : { - "title" : "project slug", - "type" : "string" - }, - "projectId" : { - "title" : "use project id if project_owner and project_slug are not provided", - "type" : "string" - }, - "version" : { - "title" : "version of the datasource, default to the active version if not provided", - "type" : "integer", - "format" : "int32" - }, - "queryId" : { - "type" : "string" - }, - "sqlQuery" : { - "$ref" : "#/components/schemas/analytic_service.SQLQuery" - } - }, - "description" : "Deprecated: will drop in the future." -}; - defs["analytic_service.RerunSQLQueryResponse"] = { - "type" : "object", - "properties" : { - "queueLength" : { - "type" : "integer", - "format" : "int32" - }, - "executionInfo" : { - "$ref" : "#/components/schemas/analytic_service.ExecutionInfo" - } - }, - "description" : "Deprecated: will drop in the future." }; defs["analytic_service.SQLQuery"] = { "type" : "object", @@ -5716,13 +5653,6 @@
  • simulateTransactionBundle
  • - -
  • - rerunSQLQuery -
  • -
  • - rerunSQLQuery2 -
  • createFork @@ -21309,943 +21239,6 @@


    -
    -

    Default

    -
    -
    -
    -

    rerunSQLQuery

    -

    deprecated

    -
    -
    -
    -

    -

    -

    -
    -
    /api/v1/analytics/{owner}/{slug}/sql/rerun_query
    -

    -

    Usage and SDK Samples

    -

    - - -
    -
    -
    curl -X POST \
    --H "api-key: [[apiKey]]" \
    - -H "Accept: application/json" \
    - -H "Content-Type: application/json" \
    - "https://app.sentio.xyz/api/v1/analytics/{owner}/{slug}/sql/rerun_query" \
    - -d ''
    -
    -
    -
    -
    import org.openapitools.client.*;
    -import org.openapitools.client.auth.*;
    -import org.openapitools.client.model.*;
    -import org.openapitools.client.api.DefaultApi;
    -
    -import java.io.File;
    -import java.util.*;
    -
    -public class DefaultApiExample {
    -    public static void main(String[] args) {
    -        ApiClient defaultClient = Configuration.getDefaultApiClient();
    -
    -        // Configure API key authorization: ApiKeyAuth
    -        ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth");
    -        ApiKeyAuth.setApiKey("YOUR API KEY");
    -        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
    -        //ApiKeyAuth.setApiKeyPrefix("Token");
    -
    -        // Create an instance of the API class
    -        DefaultApi apiInstance = new DefaultApi();
    -        String owner = owner_example; // String | username or organization name
    -        String slug = slug_example; // String | project slug
    -        AnalyticServiceAnalyticServiceRerunSQLQueryBody body = ; // AnalyticServiceAnalyticServiceRerunSQLQueryBody | 
    -
    -        try {
    -            analytic_service.RerunSQLQueryResponse result = apiInstance.rerunSQLQuery(owner, slug, body);
    -            System.out.println(result);
    -        } catch (ApiException e) {
    -            System.err.println("Exception when calling DefaultApi#rerunSQLQuery");
    -            e.printStackTrace();
    -        }
    -    }
    -}
    -
    -
    - -
    -
    import 'package:openapi/api.dart';
    -
    -final api_instance = DefaultApi();
    -
    -final String owner = new String(); // String | username or organization name
    -final String slug = new String(); // String | project slug
    -final AnalyticServiceAnalyticServiceRerunSQLQueryBody body = new AnalyticServiceAnalyticServiceRerunSQLQueryBody(); // AnalyticServiceAnalyticServiceRerunSQLQueryBody | 
    -
    -try {
    -    final result = await api_instance.rerunSQLQuery(owner, slug, body);
    -    print(result);
    -} catch (e) {
    -    print('Exception when calling DefaultApi->rerunSQLQuery: $e\n');
    -}
    -
    -
    -
    - -
    -
    import org.openapitools.client.api.DefaultApi;
    -
    -public class DefaultApiExample {
    -    public static void main(String[] args) {
    -        DefaultApi apiInstance = new DefaultApi();
    -        String owner = owner_example; // String | username or organization name
    -        String slug = slug_example; // String | project slug
    -        AnalyticServiceAnalyticServiceRerunSQLQueryBody body = ; // AnalyticServiceAnalyticServiceRerunSQLQueryBody | 
    -
    -        try {
    -            analytic_service.RerunSQLQueryResponse result = apiInstance.rerunSQLQuery(owner, slug, body);
    -            System.out.println(result);
    -        } catch (ApiException e) {
    -            System.err.println("Exception when calling DefaultApi#rerunSQLQuery");
    -            e.printStackTrace();
    -        }
    -    }
    -}
    -
    - -
    -
    Configuration *apiConfig = [Configuration sharedConfig];
    -
    -// Configure API key authorization: (authentication scheme: ApiKeyAuth)
    -[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"api-key"];
    -// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
    -//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"api-key"];
    -
    -
    -// Create an instance of the API class
    -DefaultApi *apiInstance = [[DefaultApi alloc] init];
    -String *owner = owner_example; // username or organization name (default to null)
    -String *slug = slug_example; // project slug (default to null)
    -AnalyticServiceAnalyticServiceRerunSQLQueryBody *body = ; // 
    -
    -// deprecated
    -[apiInstance rerunSQLQueryWith:owner
    -    slug:slug
    -    body:body
    -              completionHandler: ^(analytic_service.RerunSQLQueryResponse output, NSError* error) {
    -    if (output) {
    -        NSLog(@"%@", output);
    -    }
    -    if (error) {
    -        NSLog(@"Error: %@", error);
    -    }
    -}];
    -
    -
    - -
    -
    var SentioApi = require('sentio_api');
    -var defaultClient = SentioApi.ApiClient.instance;
    -
    -// 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['api-key'] = "Token";
    -
    -// Create an instance of the API class
    -var api = new SentioApi.DefaultApi()
    -var owner = owner_example; // {String} username or organization name
    -var slug = slug_example; // {String} project slug
    -var body = ; // {AnalyticServiceAnalyticServiceRerunSQLQueryBody} 
    -
    -var callback = function(error, data, response) {
    -  if (error) {
    -    console.error(error);
    -  } else {
    -    console.log('API called successfully. Returned data: ' + data);
    -  }
    -};
    -api.rerunSQLQuery(owner, slug, body, callback);
    -
    -
    - - -
    -
    using System;
    -using System.Diagnostics;
    -using Org.OpenAPITools.Api;
    -using Org.OpenAPITools.Client;
    -using Org.OpenAPITools.Model;
    -
    -namespace Example
    -{
    -    public class rerunSQLQueryExample
    -    {
    -        public void main()
    -        {
    -            // Configure API key authorization: ApiKeyAuth
    -            Configuration.Default.ApiKey.Add("api-key", "YOUR_API_KEY");
    -            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
    -            // Configuration.Default.ApiKeyPrefix.Add("api-key", "Bearer");
    -
    -            // Create an instance of the API class
    -            var apiInstance = new DefaultApi();
    -            var owner = owner_example;  // String | username or organization name (default to null)
    -            var slug = slug_example;  // String | project slug (default to null)
    -            var body = new AnalyticServiceAnalyticServiceRerunSQLQueryBody(); // AnalyticServiceAnalyticServiceRerunSQLQueryBody | 
    -
    -            try {
    -                // deprecated
    -                analytic_service.RerunSQLQueryResponse result = apiInstance.rerunSQLQuery(owner, slug, body);
    -                Debug.WriteLine(result);
    -            } catch (Exception e) {
    -                Debug.Print("Exception when calling DefaultApi.rerunSQLQuery: " + e.Message );
    -            }
    -        }
    -    }
    -}
    -
    -
    - -
    -
    <?php
    -require_once(__DIR__ . '/vendor/autoload.php');
    -
    -// Configure API key authorization: ApiKeyAuth
    -OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('api-key', 'YOUR_API_KEY');
    -// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
    -// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('api-key', 'Bearer');
    -
    -// Create an instance of the API class
    -$api_instance = new OpenAPITools\Client\Api\DefaultApi();
    -$owner = owner_example; // String | username or organization name
    -$slug = slug_example; // String | project slug
    -$body = ; // AnalyticServiceAnalyticServiceRerunSQLQueryBody | 
    -
    -try {
    -    $result = $api_instance->rerunSQLQuery($owner, $slug, $body);
    -    print_r($result);
    -} catch (Exception $e) {
    -    echo 'Exception when calling DefaultApi->rerunSQLQuery: ', $e->getMessage(), PHP_EOL;
    -}
    -?>
    -
    - -
    -
    use Data::Dumper;
    -use WWW::OPenAPIClient::Configuration;
    -use WWW::OPenAPIClient::DefaultApi;
    -
    -# Configure API key authorization: ApiKeyAuth
    -$WWW::OPenAPIClient::Configuration::api_key->{'api-key'} = 'YOUR_API_KEY';
    -# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
    -#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'api-key'} = "Bearer";
    -
    -# Create an instance of the API class
    -my $api_instance = WWW::OPenAPIClient::DefaultApi->new();
    -my $owner = owner_example; # String | username or organization name
    -my $slug = slug_example; # String | project slug
    -my $body = WWW::OPenAPIClient::Object::AnalyticServiceAnalyticServiceRerunSQLQueryBody->new(); # AnalyticServiceAnalyticServiceRerunSQLQueryBody | 
    -
    -eval {
    -    my $result = $api_instance->rerunSQLQuery(owner => $owner, slug => $slug, body => $body);
    -    print Dumper($result);
    -};
    -if ($@) {
    -    warn "Exception when calling DefaultApi->rerunSQLQuery: $@\n";
    -}
    -
    - -
    -
    from __future__ import print_statement
    -import time
    -import openapi_client
    -from openapi_client.rest import ApiException
    -from pprint import pprint
    -
    -# Configure API key authorization: ApiKeyAuth
    -openapi_client.configuration.api_key['api-key'] = 'YOUR_API_KEY'
    -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
    -# openapi_client.configuration.api_key_prefix['api-key'] = 'Bearer'
    -
    -# Create an instance of the API class
    -api_instance = openapi_client.DefaultApi()
    -owner = owner_example # String | username or organization name (default to null)
    -slug = slug_example # String | project slug (default to null)
    -body =  # AnalyticServiceAnalyticServiceRerunSQLQueryBody | 
    -
    -try:
    -    # deprecated
    -    api_response = api_instance.rerun_sql_query(owner, slug, body)
    -    pprint(api_response)
    -except ApiException as e:
    -    print("Exception when calling DefaultApi->rerunSQLQuery: %s\n" % e)
    -
    - -
    -
    extern crate DefaultApi;
    -
    -pub fn main() {
    -    let owner = owner_example; // String
    -    let slug = slug_example; // String
    -    let body = ; // AnalyticServiceAnalyticServiceRerunSQLQueryBody
    -
    -    let mut context = DefaultApi::Context::default();
    -    let result = client.rerunSQLQuery(owner, slug, body, &context).wait();
    -
    -    println!("{:?}", result);
    -}
    -
    -
    -
    - -

    Scopes

    - - -
    - -

    Parameters

    - -
    Path parameters
    - - - - - - - - - - - - - -
    NameDescription
    owner* - - -
    -
    -
    - - String - - -
    -username or organization name -
    -
    -
    - Required -
    -
    -
    -
    slug* - - -
    -
    -
    - - String - - -
    -project slug -
    -
    -
    - Required -
    -
    -
    -
    - - -
    Body parameters
    - - - - - - - - - -
    NameDescription
    body * -

    - -
    -
    - - - -

    Responses

    -

    -

    - - - - - - -
    -
    -
    - -
    - -
    -
    -
    -
    -
    -
    -
    -
    -

    rerunSQLQuery2

    -

    deprecated

    -
    -
    -
    -

    -

    -

    -
    -
    /api/v1/analytics/sql/rerun_query
    -

    -

    Usage and SDK Samples

    -

    - - -
    -
    -
    curl -X POST \
    --H "api-key: [[apiKey]]" \
    - -H "Accept: application/json" \
    - -H "Content-Type: application/json" \
    - "https://app.sentio.xyz/api/v1/analytics/sql/rerun_query" \
    - -d ''
    -
    -
    -
    -
    import org.openapitools.client.*;
    -import org.openapitools.client.auth.*;
    -import org.openapitools.client.model.*;
    -import org.openapitools.client.api.DefaultApi;
    -
    -import java.io.File;
    -import java.util.*;
    -
    -public class DefaultApiExample {
    -    public static void main(String[] args) {
    -        ApiClient defaultClient = Configuration.getDefaultApiClient();
    -
    -        // Configure API key authorization: ApiKeyAuth
    -        ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth");
    -        ApiKeyAuth.setApiKey("YOUR API KEY");
    -        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
    -        //ApiKeyAuth.setApiKeyPrefix("Token");
    -
    -        // Create an instance of the API class
    -        DefaultApi apiInstance = new DefaultApi();
    -        AnalyticServiceRerunSQLQueryRequest body = ; // AnalyticServiceRerunSQLQueryRequest | 
    -
    -        try {
    -            analytic_service.RerunSQLQueryResponse result = apiInstance.rerunSQLQuery2(body);
    -            System.out.println(result);
    -        } catch (ApiException e) {
    -            System.err.println("Exception when calling DefaultApi#rerunSQLQuery2");
    -            e.printStackTrace();
    -        }
    -    }
    -}
    -
    -
    - -
    -
    import 'package:openapi/api.dart';
    -
    -final api_instance = DefaultApi();
    -
    -final AnalyticServiceRerunSQLQueryRequest body = new AnalyticServiceRerunSQLQueryRequest(); // AnalyticServiceRerunSQLQueryRequest | 
    -
    -try {
    -    final result = await api_instance.rerunSQLQuery2(body);
    -    print(result);
    -} catch (e) {
    -    print('Exception when calling DefaultApi->rerunSQLQuery2: $e\n');
    -}
    -
    -
    -
    - -
    -
    import org.openapitools.client.api.DefaultApi;
    -
    -public class DefaultApiExample {
    -    public static void main(String[] args) {
    -        DefaultApi apiInstance = new DefaultApi();
    -        AnalyticServiceRerunSQLQueryRequest body = ; // AnalyticServiceRerunSQLQueryRequest | 
    -
    -        try {
    -            analytic_service.RerunSQLQueryResponse result = apiInstance.rerunSQLQuery2(body);
    -            System.out.println(result);
    -        } catch (ApiException e) {
    -            System.err.println("Exception when calling DefaultApi#rerunSQLQuery2");
    -            e.printStackTrace();
    -        }
    -    }
    -}
    -
    - -
    -
    Configuration *apiConfig = [Configuration sharedConfig];
    -
    -// Configure API key authorization: (authentication scheme: ApiKeyAuth)
    -[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"api-key"];
    -// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
    -//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"api-key"];
    -
    -
    -// Create an instance of the API class
    -DefaultApi *apiInstance = [[DefaultApi alloc] init];
    -AnalyticServiceRerunSQLQueryRequest *body = ; // 
    -
    -// deprecated
    -[apiInstance rerunSQLQuery2With:body
    -              completionHandler: ^(analytic_service.RerunSQLQueryResponse output, NSError* error) {
    -    if (output) {
    -        NSLog(@"%@", output);
    -    }
    -    if (error) {
    -        NSLog(@"Error: %@", error);
    -    }
    -}];
    -
    -
    - -
    -
    var SentioApi = require('sentio_api');
    -var defaultClient = SentioApi.ApiClient.instance;
    -
    -// 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['api-key'] = "Token";
    -
    -// Create an instance of the API class
    -var api = new SentioApi.DefaultApi()
    -var body = ; // {AnalyticServiceRerunSQLQueryRequest} 
    -
    -var callback = function(error, data, response) {
    -  if (error) {
    -    console.error(error);
    -  } else {
    -    console.log('API called successfully. Returned data: ' + data);
    -  }
    -};
    -api.rerunSQLQuery2(body, callback);
    -
    -
    - - -
    -
    using System;
    -using System.Diagnostics;
    -using Org.OpenAPITools.Api;
    -using Org.OpenAPITools.Client;
    -using Org.OpenAPITools.Model;
    -
    -namespace Example
    -{
    -    public class rerunSQLQuery2Example
    -    {
    -        public void main()
    -        {
    -            // Configure API key authorization: ApiKeyAuth
    -            Configuration.Default.ApiKey.Add("api-key", "YOUR_API_KEY");
    -            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
    -            // Configuration.Default.ApiKeyPrefix.Add("api-key", "Bearer");
    -
    -            // Create an instance of the API class
    -            var apiInstance = new DefaultApi();
    -            var body = new AnalyticServiceRerunSQLQueryRequest(); // AnalyticServiceRerunSQLQueryRequest | 
    -
    -            try {
    -                // deprecated
    -                analytic_service.RerunSQLQueryResponse result = apiInstance.rerunSQLQuery2(body);
    -                Debug.WriteLine(result);
    -            } catch (Exception e) {
    -                Debug.Print("Exception when calling DefaultApi.rerunSQLQuery2: " + e.Message );
    -            }
    -        }
    -    }
    -}
    -
    -
    - -
    -
    <?php
    -require_once(__DIR__ . '/vendor/autoload.php');
    -
    -// Configure API key authorization: ApiKeyAuth
    -OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('api-key', 'YOUR_API_KEY');
    -// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
    -// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('api-key', 'Bearer');
    -
    -// Create an instance of the API class
    -$api_instance = new OpenAPITools\Client\Api\DefaultApi();
    -$body = ; // AnalyticServiceRerunSQLQueryRequest | 
    -
    -try {
    -    $result = $api_instance->rerunSQLQuery2($body);
    -    print_r($result);
    -} catch (Exception $e) {
    -    echo 'Exception when calling DefaultApi->rerunSQLQuery2: ', $e->getMessage(), PHP_EOL;
    -}
    -?>
    -
    - -
    -
    use Data::Dumper;
    -use WWW::OPenAPIClient::Configuration;
    -use WWW::OPenAPIClient::DefaultApi;
    -
    -# Configure API key authorization: ApiKeyAuth
    -$WWW::OPenAPIClient::Configuration::api_key->{'api-key'} = 'YOUR_API_KEY';
    -# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
    -#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'api-key'} = "Bearer";
    -
    -# Create an instance of the API class
    -my $api_instance = WWW::OPenAPIClient::DefaultApi->new();
    -my $body = WWW::OPenAPIClient::Object::AnalyticServiceRerunSQLQueryRequest->new(); # AnalyticServiceRerunSQLQueryRequest | 
    -
    -eval {
    -    my $result = $api_instance->rerunSQLQuery2(body => $body);
    -    print Dumper($result);
    -};
    -if ($@) {
    -    warn "Exception when calling DefaultApi->rerunSQLQuery2: $@\n";
    -}
    -
    - -
    -
    from __future__ import print_statement
    -import time
    -import openapi_client
    -from openapi_client.rest import ApiException
    -from pprint import pprint
    -
    -# Configure API key authorization: ApiKeyAuth
    -openapi_client.configuration.api_key['api-key'] = 'YOUR_API_KEY'
    -# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
    -# openapi_client.configuration.api_key_prefix['api-key'] = 'Bearer'
    -
    -# Create an instance of the API class
    -api_instance = openapi_client.DefaultApi()
    -body =  # AnalyticServiceRerunSQLQueryRequest | 
    -
    -try:
    -    # deprecated
    -    api_response = api_instance.rerun_sql_query2(body)
    -    pprint(api_response)
    -except ApiException as e:
    -    print("Exception when calling DefaultApi->rerunSQLQuery2: %s\n" % e)
    -
    - -
    -
    extern crate DefaultApi;
    -
    -pub fn main() {
    -    let body = ; // AnalyticServiceRerunSQLQueryRequest
    -
    -    let mut context = DefaultApi::Context::default();
    -    let result = client.rerunSQLQuery2(body, &context).wait();
    -
    -    println!("{:?}", result);
    -}
    -
    -
    -
    - -

    Scopes

    - - -
    - -

    Parameters

    - - - -
    Body parameters
    - - - - - - - - - -
    NameDescription
    body * -

    Deprecated: will drop in the future.

    - -
    -
    - - - -

    Responses

    -

    -

    - - - - - - -
    -
    -
    - -
    - -
    -
    -
    -
    -
    -

    Forks

    diff --git a/openapi.json b/openapi.json index bae7925..328b27d 100644 --- a/openapi.json +++ b/openapi.json @@ -166,31 +166,6 @@ ] } }, - "/api/v1/analytics/sql/rerun_query": { - "post": { - "summary": "deprecated", - "operationId": "RerunSQLQuery2", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/analytic_service.RerunSQLQueryResponse" - } - } - }, - "parameters": [ - { - "name": "body", - "description": "Deprecated: will drop in the future.", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/analytic_service.RerunSQLQueryRequest" - } - } - ] - } - }, "/api/v1/analytics/{owner}/{slug}/sql/execute": { "post": { "summary": "Execute SQL", @@ -334,44 +309,6 @@ ] } }, - "/api/v1/analytics/{owner}/{slug}/sql/rerun_query": { - "post": { - "summary": "deprecated", - "operationId": "RerunSQLQuery", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/analytic_service.RerunSQLQueryResponse" - } - } - }, - "parameters": [ - { - "name": "owner", - "description": "username or organization name", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "slug", - "description": "project slug", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/analytic_service.AnalyticService.RerunSQLQueryBody" - } - } - ] - } - }, "/api/v1/analytics/{owner}/{slug}/sql/save": { "post": { "summary": "Save SQL", @@ -2989,27 +2926,6 @@ } } }, - "analytic_service.AnalyticService.RerunSQLQueryBody": { - "type": "object", - "properties": { - "projectId": { - "type": "string", - "title": "use project id if project_owner and project_slug are not provided" - }, - "version": { - "type": "integer", - "format": "int32", - "title": "version of the datasource, default to the active version if not provided" - }, - "queryId": { - "type": "string" - }, - "sqlQuery": { - "$ref": "#/definitions/analytic_service.SQLQuery" - } - }, - "description": "Deprecated: will drop in the future." - }, "analytic_service.AnalyticService.SaveSQLBody": { "type": "object", "properties": { @@ -3154,48 +3070,6 @@ } } }, - "analytic_service.RerunSQLQueryRequest": { - "type": "object", - "properties": { - "projectOwner": { - "type": "string", - "title": "username or organization name" - }, - "projectSlug": { - "type": "string", - "title": "project slug" - }, - "projectId": { - "type": "string", - "title": "use project id if project_owner and project_slug are not provided" - }, - "version": { - "type": "integer", - "format": "int32", - "title": "version of the datasource, default to the active version if not provided" - }, - "queryId": { - "type": "string" - }, - "sqlQuery": { - "$ref": "#/definitions/analytic_service.SQLQuery" - } - }, - "description": "Deprecated: will drop in the future." - }, - "analytic_service.RerunSQLQueryResponse": { - "type": "object", - "properties": { - "queueLength": { - "type": "integer", - "format": "int32" - }, - "executionInfo": { - "$ref": "#/definitions/analytic_service.ExecutionInfo" - } - }, - "description": "Deprecated: will drop in the future." - }, "analytic_service.SQLQuery": { "type": "object", "properties": { diff --git a/src/DefaultApi.md b/src/DefaultApi.md deleted file mode 100755 index 5dc7b84..0000000 --- a/src/DefaultApi.md +++ /dev/null @@ -1,237 +0,0 @@ -# .DefaultApi - -All URIs are relative to *https://app.sentio.xyz* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**rerunSQLQuery**](DefaultApi.md#rerunSQLQuery) | **POST** /api/v1/analytics/{owner}/{slug}/sql/rerun_query | deprecated -[**rerunSQLQuery2**](DefaultApi.md#rerunSQLQuery2) | **POST** /api/v1/analytics/sql/rerun_query | deprecated - - -# **rerunSQLQuery** -> AnalyticServiceRerunSQLQueryResponse rerunSQLQuery(body) - - -### Example - - -```typescript -import { createConfiguration, DefaultApi } from ''; -import type { DefaultApiRerunSQLQueryRequest } from ''; - -const configuration = createConfiguration(); -const apiInstance = new DefaultApi(configuration); - -const request: DefaultApiRerunSQLQueryRequest = { - // username or organization name - owner: "owner_example", - // project slug - slug: "slug_example", - - body: { - projectId: "projectId_example", - version: 1, - queryId: "queryId_example", - sqlQuery: { - sql: "sql_example", - size: 1, - parameters: { - fields: { - "key": { - nullValue: "NULL_VALUE", - intValue: 1, - floatValue: 3.14, - bytesValue: 'YQ==', - boolValue: true, - stringValue: "stringValue_example", - timestampValue: new Date('1970-01-01T00:00:00.00Z'), - bigintValue: { - negative: true, - data: 'YQ==', - }, - bigdecimalValue: { - value: { - negative: true, - data: 'YQ==', - }, - exp: 1, - }, - listValue: { - values: [ - , - ], - }, - structValue: , - tokenValue: { - token: { - symbol: "symbol_example", - address: { - address: "address_example", - chain: "chain_example", - }, - }, - amount: { - value: { - negative: true, - data: 'YQ==', - }, - exp: 1, - }, - specifiedAt: new Date('1970-01-01T00:00:00.00Z'), - }, - }, - }, - }, - name: "name_example", - queryId: "queryId_example", - }, - }, -}; - -const data = await apiInstance.rerunSQLQuery(request); -console.log('API called successfully. Returned data:', data); -``` - - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **body** | **AnalyticServiceAnalyticServiceRerunSQLQueryBody**| | - **owner** | [**string**] | username or organization name | defaults to undefined - **slug** | [**string**] | project slug | defaults to undefined - - -### Return type - -**AnalyticServiceRerunSQLQueryResponse** - -### Authorization - -[ApiKeyAuth](README.md#ApiKeyAuth) - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: application/json - - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | A successful response. | - | - -[[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) - -# **rerunSQLQuery2** -> AnalyticServiceRerunSQLQueryResponse rerunSQLQuery2(body) - - -### Example - - -```typescript -import { createConfiguration, DefaultApi } from ''; -import type { DefaultApiRerunSQLQuery2Request } from ''; - -const configuration = createConfiguration(); -const apiInstance = new DefaultApi(configuration); - -const request: DefaultApiRerunSQLQuery2Request = { - // Deprecated: will drop in the future. - body: { - projectOwner: "projectOwner_example", - projectSlug: "projectSlug_example", - projectId: "projectId_example", - version: 1, - queryId: "queryId_example", - sqlQuery: { - sql: "sql_example", - size: 1, - parameters: { - fields: { - "key": { - nullValue: "NULL_VALUE", - intValue: 1, - floatValue: 3.14, - bytesValue: 'YQ==', - boolValue: true, - stringValue: "stringValue_example", - timestampValue: new Date('1970-01-01T00:00:00.00Z'), - bigintValue: { - negative: true, - data: 'YQ==', - }, - bigdecimalValue: { - value: { - negative: true, - data: 'YQ==', - }, - exp: 1, - }, - listValue: { - values: [ - , - ], - }, - structValue: , - tokenValue: { - token: { - symbol: "symbol_example", - address: { - address: "address_example", - chain: "chain_example", - }, - }, - amount: { - value: { - negative: true, - data: 'YQ==', - }, - exp: 1, - }, - specifiedAt: new Date('1970-01-01T00:00:00.00Z'), - }, - }, - }, - }, - name: "name_example", - queryId: "queryId_example", - }, - }, -}; - -const data = await apiInstance.rerunSQLQuery2(request); -console.log('API called successfully. Returned data:', data); -``` - - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **body** | **AnalyticServiceRerunSQLQueryRequest**| Deprecated: will drop in the future. | - - -### Return type - -**AnalyticServiceRerunSQLQueryResponse** - -### Authorization - -[ApiKeyAuth](README.md#ApiKeyAuth) - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: application/json - - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | A successful response. | - | - -[[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) - - diff --git a/src/apis/DefaultApi.ts b/src/apis/DefaultApi.ts deleted file mode 100755 index 1adc9da..0000000 --- a/src/apis/DefaultApi.ts +++ /dev/null @@ -1,192 +0,0 @@ -// TODO: better import syntax? -import {BaseAPIRequestFactory, RequiredError, COLLECTION_FORMATS} from './baseapi.js'; -import {Configuration} from '../configuration.js'; -import {RequestContext, HttpMethod, ResponseContext, HttpFile, HttpInfo} from '../http/http.js'; -import {ObjectSerializer} from '../models/ObjectSerializer.js'; -import {ApiException} from './exception.js'; -import {canConsumeForm, isCodeInRange} from '../util.js'; -import {SecurityAuthentication} from '../auth/auth.js'; - - -import { AnalyticServiceAnalyticServiceRerunSQLQueryBody } from '../models/AnalyticServiceAnalyticServiceRerunSQLQueryBody.js'; -import { AnalyticServiceRerunSQLQueryRequest } from '../models/AnalyticServiceRerunSQLQueryRequest.js'; -import { AnalyticServiceRerunSQLQueryResponse } from '../models/AnalyticServiceRerunSQLQueryResponse.js'; - -/** - * no description - */ -export class DefaultApiRequestFactory extends BaseAPIRequestFactory { - - /** - * deprecated - * @param owner username or organization name - * @param slug project slug - * @param body - */ - public async rerunSQLQuery(owner: string, slug: string, body: AnalyticServiceAnalyticServiceRerunSQLQueryBody, _options?: Configuration): Promise { - let _config = _options || this.configuration; - - // verify required parameter 'owner' is not null or undefined - if (owner === null || owner === undefined) { - throw new RequiredError("DefaultApi", "rerunSQLQuery", "owner"); - } - - - // verify required parameter 'slug' is not null or undefined - if (slug === null || slug === undefined) { - throw new RequiredError("DefaultApi", "rerunSQLQuery", "slug"); - } - - - // verify required parameter 'body' is not null or undefined - if (body === null || body === undefined) { - throw new RequiredError("DefaultApi", "rerunSQLQuery", "body"); - } - - - // Path Params - const localVarPath = '/api/v1/analytics/{owner}/{slug}/sql/rerun_query' - .replace('{' + 'owner' + '}', encodeURIComponent(String(owner))) - .replace('{' + 'slug' + '}', encodeURIComponent(String(slug))); - - // Make Request Context - const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.POST); - requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - - - // Body Params - const contentType = ObjectSerializer.getPreferredMediaType([ - "application/json" - ]); - requestContext.setHeaderParam("Content-Type", contentType); - const serializedBody = ObjectSerializer.stringify( - ObjectSerializer.serialize(body, "AnalyticServiceAnalyticServiceRerunSQLQueryBody", ""), - contentType - ); - requestContext.setBody(serializedBody); - - let authMethod: SecurityAuthentication | undefined; - // Apply auth methods - authMethod = _config.authMethods["ApiKeyAuth"] - if (authMethod?.applySecurityAuthentication) { - await authMethod?.applySecurityAuthentication(requestContext); - } - - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default - if (defaultAuth?.applySecurityAuthentication) { - await defaultAuth?.applySecurityAuthentication(requestContext); - } - - return requestContext; - } - - /** - * deprecated - * @param body Deprecated: will drop in the future. - */ - public async rerunSQLQuery2(body: AnalyticServiceRerunSQLQueryRequest, _options?: Configuration): Promise { - let _config = _options || this.configuration; - - // verify required parameter 'body' is not null or undefined - if (body === null || body === undefined) { - throw new RequiredError("DefaultApi", "rerunSQLQuery2", "body"); - } - - - // Path Params - const localVarPath = '/api/v1/analytics/sql/rerun_query'; - - // Make Request Context - const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.POST); - requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8") - - - // Body Params - const contentType = ObjectSerializer.getPreferredMediaType([ - "application/json" - ]); - requestContext.setHeaderParam("Content-Type", contentType); - const serializedBody = ObjectSerializer.stringify( - ObjectSerializer.serialize(body, "AnalyticServiceRerunSQLQueryRequest", ""), - contentType - ); - requestContext.setBody(serializedBody); - - let authMethod: SecurityAuthentication | undefined; - // Apply auth methods - authMethod = _config.authMethods["ApiKeyAuth"] - if (authMethod?.applySecurityAuthentication) { - await authMethod?.applySecurityAuthentication(requestContext); - } - - const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default - if (defaultAuth?.applySecurityAuthentication) { - await defaultAuth?.applySecurityAuthentication(requestContext); - } - - return requestContext; - } - -} - -export class DefaultApiResponseProcessor { - - /** - * Unwraps the actual response sent by the server from the response context and deserializes the response content - * to the expected objects - * - * @params response Response returned by the server for a request to rerunSQLQuery - * @throws ApiException if the response code was not in [200, 299] - */ - public async rerunSQLQueryWithHttpInfo(response: ResponseContext): Promise> { - const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); - if (isCodeInRange("200", response.httpStatusCode)) { - const body: AnalyticServiceRerunSQLQueryResponse = ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "AnalyticServiceRerunSQLQueryResponse", "" - ) as AnalyticServiceRerunSQLQueryResponse; - return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); - } - - // Work around for missing responses in specification, e.g. for petstore.yaml - if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { - const body: AnalyticServiceRerunSQLQueryResponse = ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "AnalyticServiceRerunSQLQueryResponse", "" - ) as AnalyticServiceRerunSQLQueryResponse; - return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); - } - - throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); - } - - /** - * Unwraps the actual response sent by the server from the response context and deserializes the response content - * to the expected objects - * - * @params response Response returned by the server for a request to rerunSQLQuery2 - * @throws ApiException if the response code was not in [200, 299] - */ - public async rerunSQLQuery2WithHttpInfo(response: ResponseContext): Promise> { - const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); - if (isCodeInRange("200", response.httpStatusCode)) { - const body: AnalyticServiceRerunSQLQueryResponse = ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "AnalyticServiceRerunSQLQueryResponse", "" - ) as AnalyticServiceRerunSQLQueryResponse; - return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); - } - - // Work around for missing responses in specification, e.g. for petstore.yaml - if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { - const body: AnalyticServiceRerunSQLQueryResponse = ObjectSerializer.deserialize( - ObjectSerializer.parse(await response.body.text(), contentType), - "AnalyticServiceRerunSQLQueryResponse", "" - ) as AnalyticServiceRerunSQLQueryResponse; - return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); - } - - throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); - } - -} diff --git a/src/index.ts b/src/index.ts index 063bb4b..451a5d8 100755 --- a/src/index.ts +++ b/src/index.ts @@ -8,5 +8,5 @@ export * from "./servers.js"; export { RequiredError } from "./apis/baseapi.js"; export type { PromiseMiddleware as Middleware } from './middleware.js'; -export { PromiseAlertsApi as AlertsApi, PromiseDataApi as DataApi, PromiseDebugAndSimulationApi as DebugAndSimulationApi, PromiseDefaultApi as DefaultApi, PromiseForksApi as ForksApi, PromisePriceApi as PriceApi, PromiseWebApi as WebApi } from './types/PromiseAPI.js'; +export { PromiseAlertsApi as AlertsApi, PromiseDataApi as DataApi, PromiseDebugAndSimulationApi as DebugAndSimulationApi, PromiseForksApi as ForksApi, PromisePriceApi as PriceApi, PromiseWebApi as WebApi } from './types/PromiseAPI.js'; diff --git a/src/models/AnalyticServiceAnalyticServiceRerunSQLQueryBody.ts b/src/models/AnalyticServiceAnalyticServiceRerunSQLQueryBody.ts deleted file mode 100755 index af145ba..0000000 --- a/src/models/AnalyticServiceAnalyticServiceRerunSQLQueryBody.ts +++ /dev/null @@ -1,61 +0,0 @@ -/** - * Sentio API - * Sentio Open API for query data - * - * OpenAPI spec version: version not set - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { AnalyticServiceSQLQuery } from '../models/AnalyticServiceSQLQuery.js'; -import { HttpFile } from '../http/http.js'; - -/** -* Deprecated: will drop in the future. -*/ -export class AnalyticServiceAnalyticServiceRerunSQLQueryBody { - 'projectId'?: string; - 'version'?: number; - 'queryId'?: string; - 'sqlQuery'?: AnalyticServiceSQLQuery; - - static readonly discriminator: string | undefined = undefined; - - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ - { - "name": "projectId", - "baseName": "projectId", - "type": "string", - "format": "" - }, - { - "name": "version", - "baseName": "version", - "type": "number", - "format": "int32" - }, - { - "name": "queryId", - "baseName": "queryId", - "type": "string", - "format": "" - }, - { - "name": "sqlQuery", - "baseName": "sqlQuery", - "type": "AnalyticServiceSQLQuery", - "format": "" - } ]; - - static getAttributeTypeMap() { - return AnalyticServiceAnalyticServiceRerunSQLQueryBody.attributeTypeMap; - } - - public constructor() { - } -} diff --git a/src/models/AnalyticServiceRerunSQLQueryRequest.ts b/src/models/AnalyticServiceRerunSQLQueryRequest.ts deleted file mode 100755 index e8f8e9e..0000000 --- a/src/models/AnalyticServiceRerunSQLQueryRequest.ts +++ /dev/null @@ -1,75 +0,0 @@ -/** - * Sentio API - * Sentio Open API for query data - * - * OpenAPI spec version: version not set - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { AnalyticServiceSQLQuery } from '../models/AnalyticServiceSQLQuery.js'; -import { HttpFile } from '../http/http.js'; - -/** -* Deprecated: will drop in the future. -*/ -export class AnalyticServiceRerunSQLQueryRequest { - 'projectOwner'?: string; - 'projectSlug'?: string; - 'projectId'?: string; - 'version'?: number; - 'queryId'?: string; - 'sqlQuery'?: AnalyticServiceSQLQuery; - - static readonly discriminator: string | undefined = undefined; - - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ - { - "name": "projectOwner", - "baseName": "projectOwner", - "type": "string", - "format": "" - }, - { - "name": "projectSlug", - "baseName": "projectSlug", - "type": "string", - "format": "" - }, - { - "name": "projectId", - "baseName": "projectId", - "type": "string", - "format": "" - }, - { - "name": "version", - "baseName": "version", - "type": "number", - "format": "int32" - }, - { - "name": "queryId", - "baseName": "queryId", - "type": "string", - "format": "" - }, - { - "name": "sqlQuery", - "baseName": "sqlQuery", - "type": "AnalyticServiceSQLQuery", - "format": "" - } ]; - - static getAttributeTypeMap() { - return AnalyticServiceRerunSQLQueryRequest.attributeTypeMap; - } - - public constructor() { - } -} diff --git a/src/models/AnalyticServiceRerunSQLQueryResponse.ts b/src/models/AnalyticServiceRerunSQLQueryResponse.ts deleted file mode 100755 index 8ec1ab7..0000000 --- a/src/models/AnalyticServiceRerunSQLQueryResponse.ts +++ /dev/null @@ -1,47 +0,0 @@ -/** - * Sentio API - * Sentio Open API for query data - * - * OpenAPI spec version: version not set - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { AnalyticServiceExecutionInfo } from '../models/AnalyticServiceExecutionInfo.js'; -import { HttpFile } from '../http/http.js'; - -/** -* Deprecated: will drop in the future. -*/ -export class AnalyticServiceRerunSQLQueryResponse { - 'queueLength'?: number; - 'executionInfo'?: AnalyticServiceExecutionInfo; - - static readonly discriminator: string | undefined = undefined; - - static readonly mapping: {[index: string]: string} | undefined = undefined; - - static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ - { - "name": "queueLength", - "baseName": "queueLength", - "type": "number", - "format": "int32" - }, - { - "name": "executionInfo", - "baseName": "executionInfo", - "type": "AnalyticServiceExecutionInfo", - "format": "" - } ]; - - static getAttributeTypeMap() { - return AnalyticServiceRerunSQLQueryResponse.attributeTypeMap; - } - - public constructor() { - } -} diff --git a/src/models/ObjectSerializer.ts b/src/models/ObjectSerializer.ts index 0368ee7..3fa1133 100755 --- a/src/models/ObjectSerializer.ts +++ b/src/models/ObjectSerializer.ts @@ -15,7 +15,6 @@ export * from '../models/AlertServiceSample.js'; export * from '../models/AlertServiceSaveAlertRuleRequest.js'; export * from '../models/AnalyticServiceAnalyticServiceExecuteSQLAsyncBody.js'; export * from '../models/AnalyticServiceAnalyticServiceExecuteSQLBody.js'; -export * from '../models/AnalyticServiceAnalyticServiceRerunSQLQueryBody.js'; export * from '../models/AnalyticServiceAnalyticServiceSaveSQLBody.js'; export * from '../models/AnalyticServiceAsyncExecuteSQLResponse.js'; export * from '../models/AnalyticServiceExecutionInfo.js'; @@ -24,8 +23,6 @@ export * from '../models/AnalyticServiceLogQueryRequestFilter.js'; export * from '../models/AnalyticServiceLogQueryRequestSort.js'; export * from '../models/AnalyticServiceLogQueryResponse.js'; export * from '../models/AnalyticServiceQuerySQLResultResponse.js'; -export * from '../models/AnalyticServiceRerunSQLQueryRequest.js'; -export * from '../models/AnalyticServiceRerunSQLQueryResponse.js'; export * from '../models/AnalyticServiceSQLQuery.js'; export * from '../models/AnalyticServiceSaveSQLResponse.js'; export * from '../models/AnalyticServiceSearchServiceQueryLogBody.js'; @@ -276,7 +273,6 @@ import { AlertServiceSample } from '../models/AlertServiceSample.js'; import { AlertServiceSaveAlertRuleRequest } from '../models/AlertServiceSaveAlertRuleRequest.js'; import { AnalyticServiceAnalyticServiceExecuteSQLAsyncBody } from '../models/AnalyticServiceAnalyticServiceExecuteSQLAsyncBody.js'; import { AnalyticServiceAnalyticServiceExecuteSQLBody } from '../models/AnalyticServiceAnalyticServiceExecuteSQLBody.js'; -import { AnalyticServiceAnalyticServiceRerunSQLQueryBody } from '../models/AnalyticServiceAnalyticServiceRerunSQLQueryBody.js'; import { AnalyticServiceAnalyticServiceSaveSQLBody } from '../models/AnalyticServiceAnalyticServiceSaveSQLBody.js'; import { AnalyticServiceAsyncExecuteSQLResponse } from '../models/AnalyticServiceAsyncExecuteSQLResponse.js'; import { AnalyticServiceExecutionInfo } from '../models/AnalyticServiceExecutionInfo.js'; @@ -285,8 +281,6 @@ import { AnalyticServiceLogQueryRequestFilter } from '../models/AnalyticServiceL import { AnalyticServiceLogQueryRequestSort } from '../models/AnalyticServiceLogQueryRequestSort.js'; import { AnalyticServiceLogQueryResponse } from '../models/AnalyticServiceLogQueryResponse.js'; import { AnalyticServiceQuerySQLResultResponse } from '../models/AnalyticServiceQuerySQLResultResponse.js'; -import { AnalyticServiceRerunSQLQueryRequest } from '../models/AnalyticServiceRerunSQLQueryRequest.js'; -import { AnalyticServiceRerunSQLQueryResponse } from '../models/AnalyticServiceRerunSQLQueryResponse.js'; import { AnalyticServiceSQLQuery } from '../models/AnalyticServiceSQLQuery.js'; import { AnalyticServiceSaveSQLResponse } from '../models/AnalyticServiceSaveSQLResponse.js'; import { AnalyticServiceSearchServiceQueryLogBody } from '../models/AnalyticServiceSearchServiceQueryLogBody.js'; @@ -592,7 +586,6 @@ let typeMap: {[index: string]: any} = { "AlertServiceSaveAlertRuleRequest": AlertServiceSaveAlertRuleRequest, "AnalyticServiceAnalyticServiceExecuteSQLAsyncBody": AnalyticServiceAnalyticServiceExecuteSQLAsyncBody, "AnalyticServiceAnalyticServiceExecuteSQLBody": AnalyticServiceAnalyticServiceExecuteSQLBody, - "AnalyticServiceAnalyticServiceRerunSQLQueryBody": AnalyticServiceAnalyticServiceRerunSQLQueryBody, "AnalyticServiceAnalyticServiceSaveSQLBody": AnalyticServiceAnalyticServiceSaveSQLBody, "AnalyticServiceAsyncExecuteSQLResponse": AnalyticServiceAsyncExecuteSQLResponse, "AnalyticServiceExecutionInfo": AnalyticServiceExecutionInfo, @@ -600,8 +593,6 @@ let typeMap: {[index: string]: any} = { "AnalyticServiceLogQueryRequestSort": AnalyticServiceLogQueryRequestSort, "AnalyticServiceLogQueryResponse": AnalyticServiceLogQueryResponse, "AnalyticServiceQuerySQLResultResponse": AnalyticServiceQuerySQLResultResponse, - "AnalyticServiceRerunSQLQueryRequest": AnalyticServiceRerunSQLQueryRequest, - "AnalyticServiceRerunSQLQueryResponse": AnalyticServiceRerunSQLQueryResponse, "AnalyticServiceSQLQuery": AnalyticServiceSQLQuery, "AnalyticServiceSaveSQLResponse": AnalyticServiceSaveSQLResponse, "AnalyticServiceSearchServiceQueryLogBody": AnalyticServiceSearchServiceQueryLogBody, diff --git a/src/models/all.ts b/src/models/all.ts index 80c86ed..d0844ea 100755 --- a/src/models/all.ts +++ b/src/models/all.ts @@ -15,7 +15,6 @@ export * from '../models/AlertServiceSample.js' export * from '../models/AlertServiceSaveAlertRuleRequest.js' export * from '../models/AnalyticServiceAnalyticServiceExecuteSQLAsyncBody.js' export * from '../models/AnalyticServiceAnalyticServiceExecuteSQLBody.js' -export * from '../models/AnalyticServiceAnalyticServiceRerunSQLQueryBody.js' export * from '../models/AnalyticServiceAnalyticServiceSaveSQLBody.js' export * from '../models/AnalyticServiceAsyncExecuteSQLResponse.js' export * from '../models/AnalyticServiceExecutionInfo.js' @@ -24,8 +23,6 @@ export * from '../models/AnalyticServiceLogQueryRequestFilter.js' export * from '../models/AnalyticServiceLogQueryRequestSort.js' export * from '../models/AnalyticServiceLogQueryResponse.js' export * from '../models/AnalyticServiceQuerySQLResultResponse.js' -export * from '../models/AnalyticServiceRerunSQLQueryRequest.js' -export * from '../models/AnalyticServiceRerunSQLQueryResponse.js' export * from '../models/AnalyticServiceSQLQuery.js' export * from '../models/AnalyticServiceSaveSQLResponse.js' export * from '../models/AnalyticServiceSearchServiceQueryLogBody.js' diff --git a/src/types/ObjectParamAPI.ts b/src/types/ObjectParamAPI.ts index f7c8a52..37dc76a 100755 --- a/src/types/ObjectParamAPI.ts +++ b/src/types/ObjectParamAPI.ts @@ -18,7 +18,6 @@ import { AlertServiceSample } from '../models/AlertServiceSample.js'; import { AlertServiceSaveAlertRuleRequest } from '../models/AlertServiceSaveAlertRuleRequest.js'; import { AnalyticServiceAnalyticServiceExecuteSQLAsyncBody } from '../models/AnalyticServiceAnalyticServiceExecuteSQLAsyncBody.js'; import { AnalyticServiceAnalyticServiceExecuteSQLBody } from '../models/AnalyticServiceAnalyticServiceExecuteSQLBody.js'; -import { AnalyticServiceAnalyticServiceRerunSQLQueryBody } from '../models/AnalyticServiceAnalyticServiceRerunSQLQueryBody.js'; import { AnalyticServiceAnalyticServiceSaveSQLBody } from '../models/AnalyticServiceAnalyticServiceSaveSQLBody.js'; import { AnalyticServiceAsyncExecuteSQLResponse } from '../models/AnalyticServiceAsyncExecuteSQLResponse.js'; import { AnalyticServiceExecutionInfo } from '../models/AnalyticServiceExecutionInfo.js'; @@ -27,8 +26,6 @@ import { AnalyticServiceLogQueryRequestFilter } from '../models/AnalyticServiceL import { AnalyticServiceLogQueryRequestSort } from '../models/AnalyticServiceLogQueryRequestSort.js'; import { AnalyticServiceLogQueryResponse } from '../models/AnalyticServiceLogQueryResponse.js'; import { AnalyticServiceQuerySQLResultResponse } from '../models/AnalyticServiceQuerySQLResultResponse.js'; -import { AnalyticServiceRerunSQLQueryRequest } from '../models/AnalyticServiceRerunSQLQueryRequest.js'; -import { AnalyticServiceRerunSQLQueryResponse } from '../models/AnalyticServiceRerunSQLQueryResponse.js'; import { AnalyticServiceSQLQuery } from '../models/AnalyticServiceSQLQuery.js'; import { AnalyticServiceSaveSQLResponse } from '../models/AnalyticServiceSaveSQLResponse.js'; import { AnalyticServiceSearchServiceQueryLogBody } from '../models/AnalyticServiceSearchServiceQueryLogBody.js'; @@ -1794,82 +1791,6 @@ export class ObjectDebugAndSimulationApi { } -import { ObservableDefaultApi } from "./ObservableAPI.js"; -import { DefaultApiRequestFactory, DefaultApiResponseProcessor} from "../apis/DefaultApi.js"; - -export interface DefaultApiRerunSQLQueryRequest { - /** - * username or organization name - * Defaults to: undefined - * @type string - * @memberof DefaultApirerunSQLQuery - */ - owner: string - /** - * project slug - * Defaults to: undefined - * @type string - * @memberof DefaultApirerunSQLQuery - */ - slug: string - /** - * - * @type AnalyticServiceAnalyticServiceRerunSQLQueryBody - * @memberof DefaultApirerunSQLQuery - */ - body: AnalyticServiceAnalyticServiceRerunSQLQueryBody -} - -export interface DefaultApiRerunSQLQuery2Request { - /** - * Deprecated: will drop in the future. - * @type AnalyticServiceRerunSQLQueryRequest - * @memberof DefaultApirerunSQLQuery2 - */ - body: AnalyticServiceRerunSQLQueryRequest -} - -export class ObjectDefaultApi { - private api: ObservableDefaultApi - - public constructor(configuration: Configuration, requestFactory?: DefaultApiRequestFactory, responseProcessor?: DefaultApiResponseProcessor) { - this.api = new ObservableDefaultApi(configuration, requestFactory, responseProcessor); - } - - /** - * deprecated - * @param param the request object - */ - public rerunSQLQueryWithHttpInfo(param: DefaultApiRerunSQLQueryRequest, options?: Configuration): Promise> { - return this.api.rerunSQLQueryWithHttpInfo(param.owner, param.slug, param.body, options).toPromise(); - } - - /** - * deprecated - * @param param the request object - */ - public rerunSQLQuery(param: DefaultApiRerunSQLQueryRequest, options?: Configuration): Promise { - return this.api.rerunSQLQuery(param.owner, param.slug, param.body, options).toPromise(); - } - - /** - * deprecated - * @param param the request object - */ - public rerunSQLQuery2WithHttpInfo(param: DefaultApiRerunSQLQuery2Request, options?: Configuration): Promise> { - return this.api.rerunSQLQuery2WithHttpInfo(param.body, options).toPromise(); - } - - /** - * deprecated - * @param param the request object - */ - public rerunSQLQuery2(param: DefaultApiRerunSQLQuery2Request, options?: Configuration): Promise { - return this.api.rerunSQLQuery2(param.body, options).toPromise(); - } - -} - import { ObservableForksApi } from "./ObservableAPI.js"; import { ForksApiRequestFactory, ForksApiResponseProcessor} from "../apis/ForksApi.js"; diff --git a/src/types/ObservableAPI.ts b/src/types/ObservableAPI.ts index 68b2cfa..62a1a7d 100755 --- a/src/types/ObservableAPI.ts +++ b/src/types/ObservableAPI.ts @@ -19,7 +19,6 @@ import { AlertServiceSample } from '../models/AlertServiceSample.js'; import { AlertServiceSaveAlertRuleRequest } from '../models/AlertServiceSaveAlertRuleRequest.js'; import { AnalyticServiceAnalyticServiceExecuteSQLAsyncBody } from '../models/AnalyticServiceAnalyticServiceExecuteSQLAsyncBody.js'; import { AnalyticServiceAnalyticServiceExecuteSQLBody } from '../models/AnalyticServiceAnalyticServiceExecuteSQLBody.js'; -import { AnalyticServiceAnalyticServiceRerunSQLQueryBody } from '../models/AnalyticServiceAnalyticServiceRerunSQLQueryBody.js'; import { AnalyticServiceAnalyticServiceSaveSQLBody } from '../models/AnalyticServiceAnalyticServiceSaveSQLBody.js'; import { AnalyticServiceAsyncExecuteSQLResponse } from '../models/AnalyticServiceAsyncExecuteSQLResponse.js'; import { AnalyticServiceExecutionInfo } from '../models/AnalyticServiceExecutionInfo.js'; @@ -28,8 +27,6 @@ import { AnalyticServiceLogQueryRequestFilter } from '../models/AnalyticServiceL import { AnalyticServiceLogQueryRequestSort } from '../models/AnalyticServiceLogQueryRequestSort.js'; import { AnalyticServiceLogQueryResponse } from '../models/AnalyticServiceLogQueryResponse.js'; import { AnalyticServiceQuerySQLResultResponse } from '../models/AnalyticServiceQuerySQLResultResponse.js'; -import { AnalyticServiceRerunSQLQueryRequest } from '../models/AnalyticServiceRerunSQLQueryRequest.js'; -import { AnalyticServiceRerunSQLQueryResponse } from '../models/AnalyticServiceRerunSQLQueryResponse.js'; import { AnalyticServiceSQLQuery } from '../models/AnalyticServiceSQLQuery.js'; import { AnalyticServiceSaveSQLResponse } from '../models/AnalyticServiceSaveSQLResponse.js'; import { AnalyticServiceSearchServiceQueryLogBody } from '../models/AnalyticServiceSearchServiceQueryLogBody.js'; @@ -1452,90 +1449,6 @@ export class ObservableDebugAndSimulationApi { } -import { DefaultApiRequestFactory, DefaultApiResponseProcessor} from "../apis/DefaultApi.js"; -export class ObservableDefaultApi { - private requestFactory: DefaultApiRequestFactory; - private responseProcessor: DefaultApiResponseProcessor; - private configuration: Configuration; - - public constructor( - configuration: Configuration, - requestFactory?: DefaultApiRequestFactory, - responseProcessor?: DefaultApiResponseProcessor - ) { - this.configuration = configuration; - this.requestFactory = requestFactory || new DefaultApiRequestFactory(configuration); - this.responseProcessor = responseProcessor || new DefaultApiResponseProcessor(); - } - - /** - * deprecated - * @param owner username or organization name - * @param slug project slug - * @param body - */ - public rerunSQLQueryWithHttpInfo(owner: string, slug: string, body: AnalyticServiceAnalyticServiceRerunSQLQueryBody, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.rerunSQLQuery(owner, slug, body, _options); - - // build promise chain - let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { - middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); - } - - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). - pipe(mergeMap((response: ResponseContext) => { - let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { - middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); - } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.rerunSQLQueryWithHttpInfo(rsp))); - })); - } - - /** - * deprecated - * @param owner username or organization name - * @param slug project slug - * @param body - */ - public rerunSQLQuery(owner: string, slug: string, body: AnalyticServiceAnalyticServiceRerunSQLQueryBody, _options?: Configuration): Observable { - return this.rerunSQLQueryWithHttpInfo(owner, slug, body, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); - } - - /** - * deprecated - * @param body Deprecated: will drop in the future. - */ - public rerunSQLQuery2WithHttpInfo(body: AnalyticServiceRerunSQLQueryRequest, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.rerunSQLQuery2(body, _options); - - // build promise chain - let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { - middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); - } - - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). - pipe(mergeMap((response: ResponseContext) => { - let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { - middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); - } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.rerunSQLQuery2WithHttpInfo(rsp))); - })); - } - - /** - * deprecated - * @param body Deprecated: will drop in the future. - */ - public rerunSQLQuery2(body: AnalyticServiceRerunSQLQueryRequest, _options?: Configuration): Observable { - return this.rerunSQLQuery2WithHttpInfo(body, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); - } - -} - import { ForksApiRequestFactory, ForksApiResponseProcessor} from "../apis/ForksApi.js"; export class ObservableForksApi { private requestFactory: ForksApiRequestFactory; diff --git a/src/types/PromiseAPI.ts b/src/types/PromiseAPI.ts index fc47ede..f9c3227 100755 --- a/src/types/PromiseAPI.ts +++ b/src/types/PromiseAPI.ts @@ -18,7 +18,6 @@ import { AlertServiceSample } from '../models/AlertServiceSample.js'; import { AlertServiceSaveAlertRuleRequest } from '../models/AlertServiceSaveAlertRuleRequest.js'; import { AnalyticServiceAnalyticServiceExecuteSQLAsyncBody } from '../models/AnalyticServiceAnalyticServiceExecuteSQLAsyncBody.js'; import { AnalyticServiceAnalyticServiceExecuteSQLBody } from '../models/AnalyticServiceAnalyticServiceExecuteSQLBody.js'; -import { AnalyticServiceAnalyticServiceRerunSQLQueryBody } from '../models/AnalyticServiceAnalyticServiceRerunSQLQueryBody.js'; import { AnalyticServiceAnalyticServiceSaveSQLBody } from '../models/AnalyticServiceAnalyticServiceSaveSQLBody.js'; import { AnalyticServiceAsyncExecuteSQLResponse } from '../models/AnalyticServiceAsyncExecuteSQLResponse.js'; import { AnalyticServiceExecutionInfo } from '../models/AnalyticServiceExecutionInfo.js'; @@ -27,8 +26,6 @@ import { AnalyticServiceLogQueryRequestFilter } from '../models/AnalyticServiceL import { AnalyticServiceLogQueryRequestSort } from '../models/AnalyticServiceLogQueryRequestSort.js'; import { AnalyticServiceLogQueryResponse } from '../models/AnalyticServiceLogQueryResponse.js'; import { AnalyticServiceQuerySQLResultResponse } from '../models/AnalyticServiceQuerySQLResultResponse.js'; -import { AnalyticServiceRerunSQLQueryRequest } from '../models/AnalyticServiceRerunSQLQueryRequest.js'; -import { AnalyticServiceRerunSQLQueryResponse } from '../models/AnalyticServiceRerunSQLQueryResponse.js'; import { AnalyticServiceSQLQuery } from '../models/AnalyticServiceSQLQuery.js'; import { AnalyticServiceSaveSQLResponse } from '../models/AnalyticServiceSaveSQLResponse.js'; import { AnalyticServiceSearchServiceQueryLogBody } from '../models/AnalyticServiceSearchServiceQueryLogBody.js'; @@ -1076,65 +1073,6 @@ export class PromiseDebugAndSimulationApi { -import { ObservableDefaultApi } from './ObservableAPI.js'; - -import { DefaultApiRequestFactory, DefaultApiResponseProcessor} from "../apis/DefaultApi.js"; -export class PromiseDefaultApi { - private api: ObservableDefaultApi - - public constructor( - configuration: Configuration, - requestFactory?: DefaultApiRequestFactory, - responseProcessor?: DefaultApiResponseProcessor - ) { - this.api = new ObservableDefaultApi(configuration, requestFactory, responseProcessor); - } - - /** - * deprecated - * @param owner username or organization name - * @param slug project slug - * @param body - */ - public rerunSQLQueryWithHttpInfo(owner: string, slug: string, body: AnalyticServiceAnalyticServiceRerunSQLQueryBody, _options?: Configuration): Promise> { - const result = this.api.rerunSQLQueryWithHttpInfo(owner, slug, body, _options); - return result.toPromise(); - } - - /** - * deprecated - * @param owner username or organization name - * @param slug project slug - * @param body - */ - public rerunSQLQuery(owner: string, slug: string, body: AnalyticServiceAnalyticServiceRerunSQLQueryBody, _options?: Configuration): Promise { - const result = this.api.rerunSQLQuery(owner, slug, body, _options); - return result.toPromise(); - } - - /** - * deprecated - * @param body Deprecated: will drop in the future. - */ - public rerunSQLQuery2WithHttpInfo(body: AnalyticServiceRerunSQLQueryRequest, _options?: Configuration): Promise> { - const result = this.api.rerunSQLQuery2WithHttpInfo(body, _options); - return result.toPromise(); - } - - /** - * deprecated - * @param body Deprecated: will drop in the future. - */ - public rerunSQLQuery2(body: AnalyticServiceRerunSQLQueryRequest, _options?: Configuration): Promise { - const result = this.api.rerunSQLQuery2(body, _options); - return result.toPromise(); - } - - -} - - - import { ObservableForksApi } from './ObservableAPI.js'; import { ForksApiRequestFactory, ForksApiResponseProcessor} from "../apis/ForksApi.js";