0.13.62 • Published 11 months ago

@onvo-ai/js v0.13.62

Weekly downloads
-
License
ISC
Repository
github
Last release
11 months 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(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.62

11 months ago

0.13.61

1 year ago

0.13.56

1 year ago

0.13.59

1 year ago

0.13.58

1 year ago

0.13.57

1 year ago

0.13.60

1 year ago

0.13.55

1 year ago

0.13.41

1 year ago

0.13.40

1 year ago

0.13.45

1 year ago

0.13.44

1 year ago

0.13.43

1 year ago

0.13.42

1 year ago

0.13.49

1 year ago

0.13.48

1 year ago

0.13.47

1 year ago

0.13.46

1 year ago

0.13.52

1 year ago

0.13.51

1 year ago

0.13.50

1 year ago

0.13.54

1 year ago

0.13.53

1 year ago

0.13.23

1 year ago

0.13.22

1 year ago

0.13.21

1 year ago

0.13.20

1 year ago

0.13.27

1 year ago

0.13.26

1 year ago

0.13.25

1 year ago

0.13.24

1 year ago

0.13.29

1 year ago

0.13.28

1 year ago

0.13.30

1 year ago

0.13.34

1 year ago

0.13.33

1 year ago

0.13.32

1 year ago

0.13.31

1 year ago

0.13.38

1 year ago

0.13.37

1 year ago

0.13.36

1 year ago

0.13.35

1 year ago

0.13.39

1 year ago

0.13.19

1 year ago

0.13.18

1 year ago

0.13.17

1 year ago

0.13.16

1 year ago

0.13.15

1 year ago

0.13.14

1 year ago

0.13.13

1 year ago

0.13.12

1 year ago

0.13.11

1 year ago

0.13.8

1 year ago

0.13.9

1 year ago

0.13.10

1 year ago

0.13.6

1 year ago

0.13.7

1 year ago

0.13.5

1 year ago

0.13.4

1 year ago

0.13.2

1 year ago

0.13.3

1 year ago

0.13.0

1 year ago

0.13.1

1 year ago

0.12.42

1 year ago

0.12.43

1 year ago

0.12.44

1 year ago

0.12.45

1 year ago

0.12.46

1 year ago

0.12.41

1 year ago

0.12.38

1 year ago

0.12.39

1 year ago

0.12.35

1 year ago

0.12.36

1 year ago

0.12.37

1 year ago

0.12.40

1 year ago

0.12.33

1 year ago

0.12.34

1 year ago

0.12.30

1 year ago

0.12.31

1 year ago

0.12.32

1 year ago

0.12.19

1 year ago

0.12.20

1 year ago

0.12.21

1 year ago

0.12.22

1 year ago

0.12.27

1 year ago

0.12.28

1 year ago

0.12.29

1 year ago

0.12.23

1 year ago

0.12.24

1 year ago

0.12.25

1 year ago

0.12.26

1 year ago

0.12.16

1 year ago

0.12.17

1 year ago

0.12.18

1 year ago

0.12.15

1 year ago

0.12.13

2 years ago

0.12.14

1 year ago

0.12.12

2 years ago

0.12.10

2 years ago

0.12.11

2 years ago

0.12.8

2 years ago

0.12.9

2 years ago

0.12.7

2 years ago

0.12.0

2 years ago

0.12.1

2 years ago

0.12.2

2 years ago

0.12.3

2 years ago

0.12.4

2 years ago

0.12.5

2 years ago

0.12.6

2 years ago

0.11.19

2 years ago