0.13.19 • Published 10 days ago

@onvo-ai/js v0.13.19

Weekly downloads
-
License
ISC
Repository
github
Last release
10 days ago

@onvo-ai/js

The @onvo-ai/js package provides utilities to seamlessly communicate with the Onvo platform, allowing developers to integrate AI-powered dashboards into their products. This README provides an overview of the package's features, installation, and usage instructions.

Installation

You can install the package using npm:

npm install @onvo-ai/js

OR

yarn add @onvo-ai/js

OR

bun install @onvo-ai/js

Getting Started

To begin using the @onvo-ai/js package, you'll need to have an API key from the Onvo platform. Ensure that your API key is stored as an environment variable named API_KEY.

API_KEY=your_api_key

Usage

Here's an example of how to use the package to interact with the Onvo platform:

const Onvo = require("@onvo-ai/js");

// Initialize the Onvo class with your API key
const onvo = new Onvo(process.env.API_KEY);

// Identify a user
await onvo.embed_users.upsert("123456", {
  name: "John Appleseed",
  email: "john@appleseed.com",
  metadata: {
    phone_number: "+1 234 5678",
    organisation_id: "87dfty9872ydq8tg",
  },
});

// Create a session
const sessionUrl = await onvo.sessions.upsert({
  embed_user: "123456",
  parent_dashboard: "ebc7ab74-3fd2-47e6-90df-addaec3a029e",
  parameters: {
    year: 2023,
    sort: "asc",
  },
});

Library Reference

new Onvo(apiKey, options) This is the main class that initializes the connection to the Onvo platform.

  • apiKey (string): Your API key for authentication.
  • options:
    • baseUrl (string): The base URL to the Onvo platform or your self hosted endpoint.

Accounts

onvo.accounts.list()
onvo.accounts.get(id:string)

Automations

onvo.automations.list()
onvo.automations.create(body:object)
onvo.automations.get(id:string)
onvo.automations.update(id:string, body:object)
onvo.automations.delete(id:string)

onvo.automation(id:string).getRuns()

Dashboards

onvo.dashboards.list()
onvo.dashboards.create(body:object)
onvo.dashboards.get(id:string)
onvo.dashboards.update(id:string, body:object)
onvo.dashboards.delete(id:string)

onvo.dashboard(id:string).updateWidgetCache()
onvo.dashboard(id:string).getWidgetSuggestions()

onvo.dashboard(dashboardId:string).datasources.list()
onvo.dashboard(dashboardId:string).datasources.link(datasourceId:string)
onvo.dashboard(dashboardId:string).datasources.unlink(datasourceId:string)

Datasources

onvo.datasources.list()
onvo.datasources.create(body:object)
onvo.datasources.get(id:string)
onvo.datasources.update(id:string, body:object)
onvo.datasources.delete(id:string)

onvo.datasource(id:string).getData()
onvo.datasource(id:string).fetchColumnDescriptions()

Embed Users

onvo.embed_users.list()
onvo.embed_users.get(id:string)
onvo.embed_users.upsert(id:string, body:object)
onvo.embed_users.delete(id:string)

onvo.embed_user(id:string).getAccessToken()

Questions

onvo.widgets.list(filters: object)
onvo.widgets.create(body:object)
onvo.widgets.delete(id:string)

Sessions

onvo.sessions.list(filters: object)
onvo.sessions.delete(id:string)
onvo.sessions.revokeAll(body:object)
onvo.sessions.upsert(body:object)

Teams

onvo.teams.list(filters: object)
onvo.teams.get(id:string)
onvo.teams.update(id:string, body:object)

Widgets

onvo.widgets.list(filters: object)
onvo.widgets.create(body:object)
onvo.widgets.get(id:string)
onvo.widgets.update(id:string, body:object)
onvo.widgets.delete(id:string)

onvo.widget(id:string).getImage()

Support

For any issues, questions, or feedback, please contact our support team at info@onvo.ai.

License

This package is distributed under the MIT License.

Thank you for choosing the @onvo-ai/js package to integrate AI-powered dashboards from the Onvo platform into your product! We hope this package enhances your development experience and empowers your applications with advanced analytics capabilities.

0.13.19

10 days ago

0.13.18

10 days ago

0.13.17

21 days ago

0.13.16

22 days ago

0.13.15

22 days ago

0.13.14

22 days ago

0.13.13

24 days ago

0.13.12

25 days ago

0.13.11

26 days ago

0.13.8

28 days ago

0.13.9

28 days ago

0.13.10

28 days ago

0.13.6

29 days ago

0.13.7

29 days ago

0.13.5

29 days ago

0.13.4

2 months ago

0.13.2

2 months ago

0.13.3

2 months ago

0.13.0

2 months ago

0.13.1

2 months ago

0.12.42

2 months ago

0.12.43

2 months ago

0.12.44

2 months ago

0.12.45

2 months ago

0.12.46

2 months ago

0.12.41

2 months ago

0.12.38

2 months ago

0.12.39

2 months ago

0.12.35

2 months ago

0.12.36

2 months ago

0.12.37

2 months ago

0.12.40

2 months ago

0.12.33

2 months ago

0.12.34

2 months ago

0.12.30

2 months ago

0.12.31

2 months ago

0.12.32

2 months ago

0.12.19

2 months ago

0.12.20

2 months ago

0.12.21

2 months ago

0.12.22

2 months ago

0.12.27

2 months ago

0.12.28

2 months ago

0.12.29

2 months ago

0.12.23

2 months ago

0.12.24

2 months ago

0.12.25

2 months ago

0.12.26

2 months ago

0.12.16

2 months ago

0.12.17

2 months ago

0.12.18

2 months ago

0.12.15

2 months ago

0.12.13

3 months ago

0.12.14

3 months ago

0.12.12

3 months ago

0.12.10

3 months ago

0.12.11

3 months ago

0.12.8

3 months ago

0.12.9

3 months ago

0.12.7

4 months ago

0.12.0

4 months ago

0.12.1

4 months ago

0.12.2

4 months ago

0.12.3

4 months ago

0.12.4

4 months ago

0.12.5

4 months ago

0.12.6

4 months ago

0.11.19

4 months ago