1.0.0 • Published 2 years ago

@kananindzya/airbyte_configuration_api v1.0.0

Weekly downloads
-
License
MIT
Repository
-
Last release
2 years ago

airbyte_configuration_api

AirbyteConfigurationApi - JavaScript client for airbyte_configuration_api Airbyte Configuration API https://airbyte.io.

This API is a collection of HTTP RPC-style methods. While it is not a REST API, those familiar with REST should find the conventions of this API recognizable.

Here are some conventions that this API follows:

  • All endpoints are http POST methods.
  • All endpoints accept data via application/json request bodies. The API does not accept any data via query params.
  • The naming convention for endpoints is: localhost:8000/{VERSION}/{METHOD_FAMILY}/{METHOD_NAME} e.g. localhost:8000/v1/connections/create.
  • For all update methods, the whole object must be passed in, even the fields that did not change.

Change Management:

  • The major version of the API endpoint can be determined / specified in the URL localhost:8080/v1/connections/create
  • Minor version bumps will be invisible to the end user. The user cannot specify minor versions in requests.
  • All backwards incompatible changes will happen in major version bumps. We will not make backwards incompatible changes in minor version bumps. Examples of non-breaking changes (includes but not limited to...):
    • Adding fields to request or response bodies.
    • Adding new HTTP endpoints.
  • All web_backend APIs are not considered public APIs and are not guaranteeing backwards compatibility.

This SDK is automatically generated by the OpenAPI Generator project:

  • API version: 1.0.0
  • Package version: 1.0.0
  • Build package: org.openapitools.codegen.languages.JavascriptClientCodegen

Installation

For Node.js

npm

To publish the library as a npm, please follow the procedure in "Publishing npm packages".

Then install it via:

npm install airbyte_configuration_api --save

Finally, you need to build the module:

npm run build
Local development

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

npm install

Next, link it globally in npm with the following, also from JAVASCRIPT_CLIENT_DIR:

npm link

To use the link you just defined in your project, switch to the directory you want to use your airbyte_configuration_api from, and run:

npm link /path/to/<JAVASCRIPT_CLIENT_DIR>

Finally, you need to build the module:

npm run build

git

If the library is hosted at a git repository, e.g.https://github.com/GIT_USER_ID/GIT_REPO_ID then install it via:

    npm install GIT_USER_ID/GIT_REPO_ID --save

For browser

The library also works in the browser environment via npm and browserify. After following the above steps with Node.js and installing browserify with npm install -g browserify, perform the following (assuming main.js is your entry file):

browserify main.js > bundle.js

Then include bundle.js in the HTML pages.

Webpack Configuration

Using Webpack you may encounter the following error: "Module not found: Error: Cannot resolve module", most certainly you should disable AMD loader. Add/merge the following section to your webpack config:

module: {
  rules: [
    {
      parser: {
        amd: false
      }
    }
  ]
}

Getting Started

Please follow the installation instruction and execute the following JS code:

var AirbyteConfigurationApi = require('airbyte_configuration_api');


var api = new AirbyteConfigurationApi.ConnectionApi()
var connectionCreate = new AirbyteConfigurationApi.ConnectionCreate(); // {ConnectionCreate} 
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.createConnection(connectionCreate, callback);

Documentation for API Endpoints

All URIs are relative to http://localhost:8000/api

ClassMethodHTTP requestDescription
AirbyteConfigurationApi.ConnectionApicreateConnectionPOST /v1/connections/createCreate a connection between a source and a destination
AirbyteConfigurationApi.ConnectionApideleteConnectionPOST /v1/connections/deleteDelete a connection
AirbyteConfigurationApi.ConnectionApigetConnectionPOST /v1/connections/getGet a connection
AirbyteConfigurationApi.ConnectionApigetStatePOST /v1/state/getFetch the current state for a connection.
AirbyteConfigurationApi.ConnectionApilistAllConnectionsForWorkspacePOST /v1/connections/list_allReturns all connections for a workspace, including deleted connections.
AirbyteConfigurationApi.ConnectionApilistConnectionsForWorkspacePOST /v1/connections/listReturns all connections for a workspace.
AirbyteConfigurationApi.ConnectionApiresetConnectionPOST /v1/connections/resetReset the data for the connection. Deletes data generated by the connection in the destination. Resets any cursors back to initial state.
AirbyteConfigurationApi.ConnectionApisearchConnectionsPOST /v1/connections/searchSearch connections
AirbyteConfigurationApi.ConnectionApisyncConnectionPOST /v1/connections/syncTrigger a manual sync of the connection
AirbyteConfigurationApi.ConnectionApiupdateConnectionPOST /v1/connections/updateUpdate a connection
AirbyteConfigurationApi.DbMigrationApiexecuteMigrationsPOST /v1/db_migrations/migrateMigrate the database to the latest version
AirbyteConfigurationApi.DbMigrationApilistMigrationsPOST /v1/db_migrations/listList all database migrations
AirbyteConfigurationApi.DeploymentApiexportArchivePOST /v1/deployment/exportExport Airbyte Configuration and Data Archive
AirbyteConfigurationApi.DeploymentApiexportWorkspacePOST /v1/deployment/export_workspaceExport Airbyte Workspace Configuration
AirbyteConfigurationApi.DeploymentApiimportArchivePOST /v1/deployment/importImport Airbyte Configuration and Data Archive
AirbyteConfigurationApi.DeploymentApiimportIntoWorkspacePOST /v1/deployment/import_into_workspaceImport Airbyte Configuration into Workspace (this operation might change ids of imported configurations). Note, in order to use this api endpoint, you might need to upload a temporary archive resource with 'deployment/upload_archive_resource' first
AirbyteConfigurationApi.DeploymentApiuploadArchiveResourcePOST /v1/deployment/upload_archive_resourceUpload a GZIP archive tarball and stage it in the server's cache as a temporary resource
AirbyteConfigurationApi.DestinationApicheckConnectionToDestinationPOST /v1/destinations/check_connectionCheck connection to the destination
AirbyteConfigurationApi.DestinationApicheckConnectionToDestinationForUpdatePOST /v1/destinations/check_connection_for_updateCheck connection for a proposed update to a destination
AirbyteConfigurationApi.DestinationApicreateDestinationPOST /v1/destinations/createCreate a destination
AirbyteConfigurationApi.DestinationApideleteDestinationPOST /v1/destinations/deleteDelete the destination
AirbyteConfigurationApi.DestinationApigetDestinationPOST /v1/destinations/getGet configured destination
AirbyteConfigurationApi.DestinationApilistDestinationsForWorkspacePOST /v1/destinations/listList configured destinations for a workspace
AirbyteConfigurationApi.DestinationApisearchDestinationsPOST /v1/destinations/searchSearch destinations
AirbyteConfigurationApi.DestinationApiupdateDestinationPOST /v1/destinations/updateUpdate a destination
AirbyteConfigurationApi.DestinationDefinitionApicreateDestinationDefinitionPOST /v1/destination_definitions/createCreates a destinationsDefinition
AirbyteConfigurationApi.DestinationDefinitionApideleteDestinationDefinitionPOST /v1/destination_definitions/deleteDelete a destination definition
AirbyteConfigurationApi.DestinationDefinitionApigetDestinationDefinitionPOST /v1/destination_definitions/getGet destinationDefinition
AirbyteConfigurationApi.DestinationDefinitionApilistDestinationDefinitionsPOST /v1/destination_definitions/listList all the destinationDefinitions the current Airbyte deployment is configured to use
AirbyteConfigurationApi.DestinationDefinitionApilistLatestDestinationDefinitionsPOST /v1/destination_definitions/list_latestList the latest destinationDefinitions Airbyte supports
AirbyteConfigurationApi.DestinationDefinitionApiupdateDestinationDefinitionPOST /v1/destination_definitions/updateUpdate destinationDefinition
AirbyteConfigurationApi.DestinationDefinitionSpecificationApigetDestinationDefinitionSpecificationPOST /v1/destination_definition_specifications/getGet specification for a destinationDefinition
AirbyteConfigurationApi.HealthApigetHealthCheckGET /v1/healthHealth Check
AirbyteConfigurationApi.JobsApicancelJobPOST /v1/jobs/cancelCancels a job
AirbyteConfigurationApi.JobsApigetJobDebugInfoPOST /v1/jobs/get_debug_infoGets all information needed to debug this job
AirbyteConfigurationApi.JobsApigetJobInfoPOST /v1/jobs/getGet information about a job
AirbyteConfigurationApi.JobsApilistJobsForPOST /v1/jobs/listReturns recent jobs for a connection. Jobs are returned in descending order by createdAt.
AirbyteConfigurationApi.LogsApigetLogsPOST /v1/logs/getGet logs
AirbyteConfigurationApi.NotificationsApitryNotificationConfigPOST /v1/notifications/tryTry sending a notifications
AirbyteConfigurationApi.OauthApicompleteDestinationOAuthPOST /v1/destination_oauths/complete_oauthGiven a destination def ID generate an access/refresh token etc.
AirbyteConfigurationApi.OauthApicompleteSourceOAuthPOST /v1/source_oauths/complete_oauthGiven a source def ID generate an access/refresh token etc.
AirbyteConfigurationApi.OauthApigetDestinationOAuthConsentPOST /v1/destination_oauths/get_consent_urlGiven a destination connector definition ID, return the URL to the consent screen where to redirect the user to.
AirbyteConfigurationApi.OauthApigetSourceOAuthConsentPOST /v1/source_oauths/get_consent_urlGiven a source connector definition ID, return the URL to the consent screen where to redirect the user to.
AirbyteConfigurationApi.OauthApisetInstancewideDestinationOauthParamsPOST /v1/destination_oauths/oauth_params/createSets instancewide variables to be used for the oauth flow when creating this destination. When set, these variables will be injected into a connector's configuration before any interaction with the connector image itself. This enables running oauth flows with consistent variables e.g: the company's Google Ads developer_token, client_id, and client_secret without the user having to know about these variables.
AirbyteConfigurationApi.OauthApisetInstancewideSourceOauthParamsPOST /v1/source_oauths/oauth_params/createSets instancewide variables to be used for the oauth flow when creating this source. When set, these variables will be injected into a connector's configuration before any interaction with the connector image itself. This enables running oauth flows with consistent variables e.g: the company's Google Ads developer_token, client_id, and client_secret without the user having to know about these variables.
AirbyteConfigurationApi.OpenapiApigetOpenApiSpecGET /v1/openapiReturns the openapi specification
AirbyteConfigurationApi.OperationApicheckOperationPOST /v1/operations/checkCheck if an operation to be created is valid
AirbyteConfigurationApi.OperationApicreateOperationPOST /v1/operations/createCreate an operation to be applied as part of a connection pipeline
AirbyteConfigurationApi.OperationApideleteOperationPOST /v1/operations/deleteDelete an operation
AirbyteConfigurationApi.OperationApigetOperationPOST /v1/operations/getReturns an operation
AirbyteConfigurationApi.OperationApilistOperationsForConnectionPOST /v1/operations/listReturns all operations for a connection.
AirbyteConfigurationApi.OperationApiupdateOperationPOST /v1/operations/updateUpdate an operation
AirbyteConfigurationApi.SchedulerApiexecuteDestinationCheckConnectionPOST /v1/scheduler/destinations/check_connectionRun check connection for a given destination configuration
AirbyteConfigurationApi.SchedulerApiexecuteSourceCheckConnectionPOST /v1/scheduler/sources/check_connectionRun check connection for a given source configuration
AirbyteConfigurationApi.SchedulerApiexecuteSourceDiscoverSchemaPOST /v1/scheduler/sources/discover_schemaRun discover schema for a given source a source configuration
AirbyteConfigurationApi.SourceApicheckConnectionToSourcePOST /v1/sources/check_connectionCheck connection to the source
AirbyteConfigurationApi.SourceApicheckConnectionToSourceForUpdatePOST /v1/sources/check_connection_for_updateCheck connection for a proposed update to a source
AirbyteConfigurationApi.SourceApicreateSourcePOST /v1/sources/createCreate a source
AirbyteConfigurationApi.SourceApideleteSourcePOST /v1/sources/deleteDelete a source
AirbyteConfigurationApi.SourceApidiscoverSchemaForSourcePOST /v1/sources/discover_schemaDiscover the schema catalog of the source
AirbyteConfigurationApi.SourceApigetSourcePOST /v1/sources/getGet source
AirbyteConfigurationApi.SourceApilistSourcesForWorkspacePOST /v1/sources/listList sources for workspace
AirbyteConfigurationApi.SourceApisearchSourcesPOST /v1/sources/searchSearch sources
AirbyteConfigurationApi.SourceApiupdateSourcePOST /v1/sources/updateUpdate a source
AirbyteConfigurationApi.SourceDefinitionApicreateSourceDefinitionPOST /v1/source_definitions/createCreates a sourceDefinition
AirbyteConfigurationApi.SourceDefinitionApideleteSourceDefinitionPOST /v1/source_definitions/deleteDelete a source definition
AirbyteConfigurationApi.SourceDefinitionApigetSourceDefinitionPOST /v1/source_definitions/getGet source
AirbyteConfigurationApi.SourceDefinitionApilistLatestSourceDefinitionsPOST /v1/source_definitions/list_latestList the latest sourceDefinitions Airbyte supports
AirbyteConfigurationApi.SourceDefinitionApilistSourceDefinitionsPOST /v1/source_definitions/listList all the sourceDefinitions the current Airbyte deployment is configured to use
AirbyteConfigurationApi.SourceDefinitionApiupdateSourceDefinitionPOST /v1/source_definitions/updateUpdate a sourceDefinition
AirbyteConfigurationApi.SourceDefinitionSpecificationApigetSourceDefinitionSpecificationPOST /v1/source_definition_specifications/getGet specification for a SourceDefinition.
AirbyteConfigurationApi.WebBackendApiwebBackendCreateConnectionPOST /v1/web_backend/connections/createCreate a connection
AirbyteConfigurationApi.WebBackendApiwebBackendGetConnectionPOST /v1/web_backend/connections/getGet a connection
AirbyteConfigurationApi.WebBackendApiwebBackendListAllConnectionsForWorkspacePOST /v1/web_backend/connections/list_allReturns all connections for a workspace.
AirbyteConfigurationApi.WebBackendApiwebBackendListConnectionsForWorkspacePOST /v1/web_backend/connections/listReturns all non-deleted connections for a workspace.
AirbyteConfigurationApi.WebBackendApiwebBackendSearchConnectionsPOST /v1/web_backend/connections/searchSearch connections
AirbyteConfigurationApi.WebBackendApiwebBackendUpdateConnectionPOST /v1/web_backend/connections/updateUpdate a connection
AirbyteConfigurationApi.WorkspaceApicreateWorkspacePOST /v1/workspaces/createCreates a workspace
AirbyteConfigurationApi.WorkspaceApideleteWorkspacePOST /v1/workspaces/deleteDeletes a workspace
AirbyteConfigurationApi.WorkspaceApigetWorkspacePOST /v1/workspaces/getFind workspace by ID
AirbyteConfigurationApi.WorkspaceApigetWorkspaceBySlugPOST /v1/workspaces/get_by_slugFind workspace by slug
AirbyteConfigurationApi.WorkspaceApilistWorkspacesPOST /v1/workspaces/listList all workspaces registered in the current Airbyte deployment
AirbyteConfigurationApi.WorkspaceApiupdateWorkspacePOST /v1/workspaces/updateUpdate workspace state
AirbyteConfigurationApi.WorkspaceApiupdateWorkspaceFeedbackPOST /v1/workspaces/tag_feedback_status_as_doneUpdate workspace feedback state
AirbyteConfigurationApi.WorkspaceApiupdateWorkspaceNamePOST /v1/workspaces/update_nameUpdate workspace name

Documentation for Models

Documentation for Authorization

bearerAuth

  • Type: Bearer authentication (JWT)