Skip to content

demospace-ai/typescript-sdk

Repository files navigation

Fabra Typescript SDK

Use the Fabra API to build customer-facing data warehouse integrations to let your customers start sending data to your application. Unblock your sales pipeline in days, not months.

SDK Installation

NPM

npm add @fabra/sdk

Yarn

yarn add @fabra/sdk

SDK Example Usage

import {
  GetNamespacesRequest,
  GetNamespacesResponse 
} from "@fabra/sdk/dist/sdk/models/operations";

import { AxiosError } from "axios";
import { Fabra } from "@fabra/sdk";

const sdk = new Fabra({
  security: {
    apiKeyAuth: {
      apiKey: "YOUR_API_KEY_HERE",
    },
  }
});
    
const req: GetNamespacesRequest = {
  queryParams: {
    connectionID: 548814,
  },
};

sdk.connection.getNamespaces(req).then((res: GetNamespacesResponse | AxiosError) => {
   // handle response
});

SDK Available Operations

connection

  • getNamespaces - Get all namespaces
  • getSchema - Get schema for table
  • getTables - Get all tables

destination

  • createDestination - Create a new destination
  • getDestinations - Get all destinations

linkToken

  • createLinkToken - Create a new link token

object

  • createObject - Create a new object
  • getObjects - Get all objects

source

  • createSource - Create a new source
  • getSources - Get all sources

sync

  • createSync - Create a new sync
  • getSyncs - Get all syncs

SDK Generated by Speakeasy